Skip to content

Commit

Permalink
Merge pull request #33975 from mnacamura/gutenberg
Browse files Browse the repository at this point in the history
gutenberg: init at 0.3.1
  • Loading branch information
Mic92 committed Feb 28, 2018
2 parents 37765b8 + fed2d1c commit 35386a5
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
35 changes: 35 additions & 0 deletions pkgs/applications/misc/gutenberg/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{ stdenv, fetchFromGitHub, rustPlatform, cmake, CoreServices, cf-private }:

rustPlatform.buildRustPackage rec {
name = "gutenberg-${version}";
version = "0.3.1";

src = fetchFromGitHub {
owner = "Keats";
repo = "gutenberg";
rev = "v${version}";
sha256 = "03zhbwxp4dbqydiydx0hpp3vpg769zzn5i95h2sl868mpfia8gyd";
};

cargoSha256 = "0441lbmxx16aar6fn651ihk3psrx0lk3qdbbyih05xjlkkbk1qxs";

nativeBuildInputs = [ cmake ];
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ CoreServices cf-private ];

postInstall = ''
install -D -m 444 completions/gutenberg.bash \
-t $out/share/bash-completion/completions
install -D -m 444 completions/_gutenberg \
-t $out/share/zsh/site-functions
install -D -m 444 completions/gutenberg.fish \
-t $out/share/fish/vendor_completions.d
'';

meta = with stdenv.lib; {
description = "An opinionated static site generator with everything built-in";
homepage = https://www.getgutenberg.io;
license = licenses.mit;
maintainers = [];
platforms = platforms.all;
};
}
5 changes: 5 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -15830,6 +15830,11 @@ with pkgs;

gv = callPackage ../applications/misc/gv { };

gutenberg = callPackage ../applications/misc/gutenberg {
inherit (darwin.apple_sdk.frameworks) CoreServices;
inherit (darwin) cf-private;
};

guvcview = callPackage ../os-specific/linux/guvcview {
pulseaudioSupport = config.pulseaudio or true;
ffmpeg = ffmpeg_2;
Expand Down

0 comments on commit 35386a5

Please sign in to comment.