nixpkgs-suyu/pkgs/applications/misc/zola/default.nix

36 lines
1.1 KiB
Nix
Raw Normal View History

2018-08-05 00:24:13 +02:00
{ stdenv, fetchFromGitHub, rustPlatform, cmake, pkgconfig, openssl, CoreServices, cf-private }:
2017-12-29 07:13:47 +01:00
rustPlatform.buildRustPackage rec {
2018-11-17 23:53:15 +01:00
name = "zola-${version}";
2019-02-20 19:50:23 +01:00
version = "0.5.1";
2017-12-29 07:13:47 +01:00
src = fetchFromGitHub {
2018-11-17 23:53:15 +01:00
owner = "getzola";
repo = "zola";
2017-12-29 07:13:47 +01:00
rev = "v${version}";
2019-02-20 19:50:23 +01:00
sha256 = "1jj6yfb3qkfq3nwcxfrc7k1gqyls873imxgpifbwjx9slg6ssis9";
2017-12-29 07:13:47 +01:00
};
2019-02-20 19:50:23 +01:00
cargoSha256 = "1hn2l25fariidgdr32mfx2yqb3g8xk4qafs614bdjiyvfrb7j752";
2017-12-29 07:13:47 +01:00
2018-08-05 00:24:13 +02:00
nativeBuildInputs = [ cmake pkgconfig openssl ];
2017-12-29 07:13:47 +01:00
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ CoreServices cf-private ];
postInstall = ''
2018-11-17 23:53:15 +01:00
install -D -m 444 completions/zola.bash \
2017-12-29 07:13:47 +01:00
-t $out/share/bash-completion/completions
2018-11-17 23:53:15 +01:00
install -D -m 444 completions/_zola \
2017-12-29 07:13:47 +01:00
-t $out/share/zsh/site-functions
2018-11-17 23:53:15 +01:00
install -D -m 444 completions/zola.fish \
2017-12-29 07:13:47 +01:00
-t $out/share/fish/vendor_completions.d
'';
meta = with stdenv.lib; {
2018-11-17 23:53:15 +01:00
description = "A fast static site generator with everything built-in";
homepage = https://www.getzola.org/;
2017-12-29 07:13:47 +01:00
license = licenses.mit;
2018-07-14 20:32:15 +02:00
maintainers = with maintainers; [ dywedir ];
2017-12-29 07:13:47 +01:00
platforms = platforms.all;
};
}