1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-12 23:55:23 +00:00
nixpkgs/pkgs/applications/misc/zola/default.nix

36 lines
1.1 KiB
Nix
Raw Normal View History

2018-08-04 23:24:13 +01:00
{ stdenv, fetchFromGitHub, rustPlatform, cmake, pkgconfig, openssl, CoreServices, cf-private }:
2017-12-29 06:13:47 +00:00
rustPlatform.buildRustPackage rec {
2019-03-25 21:26:07 +00:00
pname = "zola";
2019-04-28 11:27:21 +01:00
version = "0.7.0";
2017-12-29 06:13:47 +00:00
src = fetchFromGitHub {
2018-11-17 22:53:15 +00:00
owner = "getzola";
2019-03-25 21:26:07 +00:00
repo = pname;
2017-12-29 06:13:47 +00:00
rev = "v${version}";
2019-04-28 11:27:21 +01:00
sha256 = "02lr1n3gf0agj8x451ndyvv16lq7rccazp4nz9zy0pzwxwrlwhra";
2017-12-29 06:13:47 +00:00
};
2019-04-28 11:27:21 +01:00
cargoSha256 = "003dhh41fh337k3djibpj6hyd16xprbgws3lbp7x37p4lx7qlnfy";
2017-12-29 06:13:47 +00:00
2019-03-25 21:26:07 +00:00
nativeBuildInputs = [ cmake pkgconfig ];
buildInputs = [ openssl ] ++ stdenv.lib.optionals stdenv.isDarwin [ CoreServices cf-private ];
2017-12-29 06:13:47 +00:00
postInstall = ''
2018-11-17 22:53:15 +00:00
install -D -m 444 completions/zola.bash \
2017-12-29 06:13:47 +00:00
-t $out/share/bash-completion/completions
2018-11-17 22:53:15 +00:00
install -D -m 444 completions/_zola \
2017-12-29 06:13:47 +00:00
-t $out/share/zsh/site-functions
2018-11-17 22:53:15 +00:00
install -D -m 444 completions/zola.fish \
2017-12-29 06:13:47 +00:00
-t $out/share/fish/vendor_completions.d
'';
meta = with stdenv.lib; {
2018-11-17 22:53:15 +00:00
description = "A fast static site generator with everything built-in";
homepage = https://www.getzola.org/;
2017-12-29 06:13:47 +00:00
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;
};
}