1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-28 08:31:59 +00:00
nixpkgs/pkgs/applications/version-management/pijul/default.nix

42 lines
1.2 KiB
Nix
Raw Normal View History

2018-10-28 10:39:35 +00:00
{ stdenv, fetchurl, rustPlatform, darwin, openssl, libsodium, pkgconfig }:
2017-03-20 07:19:05 +00:00
with rustPlatform;
buildRustPackage rec {
name = "pijul-${version}";
2018-10-28 10:39:35 +00:00
version = "0.10.0";
2017-03-20 07:19:05 +00:00
src = fetchurl {
url = "https://pijul.org/releases/${name}.tar.gz";
2018-10-28 10:39:35 +00:00
sha256 = "1lkipcp83rfsj9yqddvb46dmqdf2ch9njwvjv8f3g91rmfjcngys";
2017-03-20 07:19:05 +00:00
};
2018-10-28 10:39:35 +00:00
cargoPatches = [
./libpijul.patch
];
2017-03-20 07:19:05 +00:00
2018-10-28 10:39:35 +00:00
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
2017-03-20 07:19:05 +00:00
(with darwin.apple_sdk.frameworks; [ Security ]);
doCheck = false;
2017-06-07 09:24:44 +01:00
2018-10-28 10:39:35 +00:00
cargoSha256 = "1419mlxa4p53hm5qzfd1yi2k0n1bcv8kaslls1nyx661vknhfamw";
2017-03-20 07:19:05 +00:00
meta = with stdenv.lib; {
description = "A distributed version control system";
homepage = https://pijul.org;
license = with licenses; [ gpl2Plus ];
maintainers = [ maintainers.gal_bolle ];
platforms = platforms.all;
};
}