diff options
Diffstat (limited to 'nixpkgs/pkgs/applications/misc/zola/default.nix')
-rw-r--r-- | nixpkgs/pkgs/applications/misc/zola/default.nix | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/applications/misc/zola/default.nix b/nixpkgs/pkgs/applications/misc/zola/default.nix new file mode 100644 index 000000000000..48f5b216ea1b --- /dev/null +++ b/nixpkgs/pkgs/applications/misc/zola/default.nix @@ -0,0 +1,35 @@ +{ stdenv, fetchFromGitHub, rustPlatform, cmake, pkgconfig, openssl, CoreServices, cf-private }: + +rustPlatform.buildRustPackage rec { + pname = "zola"; + version = "0.8.0"; + + src = fetchFromGitHub { + owner = "getzola"; + repo = pname; + rev = "v${version}"; + sha256 = "166kmlkzd1qyw9yq2jqs58z8b3d956jjhw9r15jzw98md949psr5"; + }; + + cargoSha256 = "1brmlg6nqyls1v62z0fg0km150q9m7h71wy67lidcnw76icmqr24"; + + nativeBuildInputs = [ cmake pkgconfig ]; + buildInputs = [ openssl ] ++ stdenv.lib.optionals stdenv.isDarwin [ CoreServices cf-private ]; + + postInstall = '' + install -D -m 444 completions/zola.bash \ + -t $out/share/bash-completion/completions + install -D -m 444 completions/_zola \ + -t $out/share/zsh/site-functions + install -D -m 444 completions/zola.fish \ + -t $out/share/fish/vendor_completions.d + ''; + + meta = with stdenv.lib; { + description = "A fast static site generator with everything built-in"; + homepage = https://www.getzola.org/; + license = licenses.mit; + maintainers = with maintainers; [ dywedir ]; + platforms = platforms.all; + }; +} |