summaryrefslogtreecommitdiffstats
path: root/pkgs/applications/version-management/pijul/default.nix
diff options
context:
space:
mode:
authorJörg Thalheim <joerg@thalheim.io>2018-10-28 10:39:35 +0000
committerJörg Thalheim <joerg@thalheim.io>2018-10-28 10:45:58 +0000
commit1246c317618f8d912c9f4ca9a1a83606d5b848ed (patch)
tree7b862d87ea13bc7664f1d719ff540ff70e7bcb0d /pkgs/applications/version-management/pijul/default.nix
parent9ac64e5bb65aeca34bef01e48fefaea186428bc1 (diff)
pijul: 0.8.0 -> 0.10.0
Diffstat (limited to 'pkgs/applications/version-management/pijul/default.nix')
-rw-r--r--pkgs/applications/version-management/pijul/default.nix23
1 files changed, 17 insertions, 6 deletions
diff --git a/pkgs/applications/version-management/pijul/default.nix b/pkgs/applications/version-management/pijul/default.nix
index 1a8fe6f5fe5c..7419c52c48b3 100644
--- a/pkgs/applications/version-management/pijul/default.nix
+++ b/pkgs/applications/version-management/pijul/default.nix
@@ -1,24 +1,35 @@
-{ stdenv, fetchurl, rustPlatform, darwin }:
+{ stdenv, fetchurl, rustPlatform, darwin, openssl, libsodium, pkgconfig }:
with rustPlatform;
buildRustPackage rec {
name = "pijul-${version}";
- version = "0.8.0";
+ version = "0.10.0";
src = fetchurl {
url = "https://pijul.org/releases/${name}.tar.gz";
- sha256 = "00pi03yp2bgnjpsz2hgaapxfw2i4idbjqc88cagpvn4yr1612wqx";
+ sha256 = "1lkipcp83rfsj9yqddvb46dmqdf2ch9njwvjv8f3g91rmfjcngys";
};
- sourceRoot = "${name}/pijul";
+ cargoPatches = [
+ ./libpijul.patch
+ ];
- buildInputs = stdenv.lib.optionals stdenv.isDarwin
+ nativeBuildInputs = [ pkgconfig ];
+
+ postInstall = ''
+ mkdir -p $out/share/{bash-completion/completions,zsh/site-functions,fish/vendor_completions.d}
+ $out/bin/pijul generate-completions --bash > $out/share/bash-completion/completions/pijul
+ $out/bin/pijul generate-completions --zsh > $out/share/zsh/site-functions/_pijul
+ $out/bin/pijul generate-completions --fish > $out/share/fish/vendor_completions.d/pijul.fish
+ '';
+
+ buildInputs = [ openssl libsodium ] ++ stdenv.lib.optionals stdenv.isDarwin
(with darwin.apple_sdk.frameworks; [ Security ]);
doCheck = false;
- cargoSha256 = "1cnr08qbpia3336l37k1jli20d7kwnrw2gys8s9mg271cb4vdx03";
+ cargoSha256 = "1419mlxa4p53hm5qzfd1yi2k0n1bcv8kaslls1nyx661vknhfamw";
meta = with stdenv.lib; {
description = "A distributed version control system";