3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/misc/gutenberg/default.nix

36 lines
1.1 KiB
Nix
Raw Normal View History

2017-12-29 06:13:47 +00:00
{ stdenv, fetchFromGitHub, rustPlatform, cmake, CoreServices, cf-private }:
rustPlatform.buildRustPackage rec {
name = "gutenberg-${version}";
2018-07-14 19:32:15 +01:00
version = "0.3.4";
2017-12-29 06:13:47 +00:00
src = fetchFromGitHub {
owner = "Keats";
repo = "gutenberg";
rev = "v${version}";
2018-07-14 19:32:15 +01:00
sha256 = "1v26q1m3bx7mdmmwgd6p601ncf13rr4rrx9s06fiy8vnd0ar1vlf";
2017-12-29 06:13:47 +00:00
};
2018-07-14 19:32:15 +01:00
cargoSha256 = "0cdy0wvibkpnmlqwxvn02a2k2vqy6zdqzflj2dh6g1cjbz1j8qh5";
2017-12-29 06:13:47 +00:00
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;
2018-07-14 19:32:15 +01:00
maintainers = with maintainers; [ dywedir ];
2017-12-29 06:13:47 +00:00
platforms = platforms.all;
};
}