2019-05-17 21:40:08 +01:00
|
|
|
{ stdenv, fetchurl, rustPlatform, darwin, openssl, libsodium, nettle, clang, libclang, pkgconfig }:
|
2017-03-20 07:19:05 +00:00
|
|
|
|
2019-05-23 14:06:25 +01:00
|
|
|
rustPlatform.buildRustPackage rec {
|
2019-08-31 12:41:23 +01:00
|
|
|
pname = "pijul";
|
2019-05-17 21:40:08 +01:00
|
|
|
version = "0.12.0";
|
2017-03-20 07:19:05 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-31 12:41:23 +01:00
|
|
|
url = "https://pijul.org/releases/${pname}-${version}.tar.gz";
|
2019-05-17 21:40:08 +01:00
|
|
|
sha256 = "1rm787kkh3ya8ix0rjvj7sbrg9armm0rnpkga6gjmsbg5bx20y4q";
|
2017-03-20 07:19:05 +00:00
|
|
|
};
|
|
|
|
|
2019-05-17 21:40:08 +01:00
|
|
|
nativeBuildInputs = [ pkgconfig clang ];
|
2018-10-28 10:39:35 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
'';
|
|
|
|
|
2019-05-17 21:40:08 +01:00
|
|
|
LIBCLANG_PATH = libclang + "/lib";
|
|
|
|
|
|
|
|
buildInputs = [ openssl libsodium nettle libclang ] ++ stdenv.lib.optionals stdenv.isDarwin
|
2019-05-23 14:06:25 +01:00
|
|
|
(with darwin.apple_sdk.frameworks; [ CoreServices Security ]);
|
2017-03-20 07:19:05 +00:00
|
|
|
|
|
|
|
doCheck = false;
|
2017-06-07 09:24:44 +01:00
|
|
|
|
2019-05-17 21:40:08 +01:00
|
|
|
cargoSha256 = "1w77s5q18yr1gqqif15wmrfdvv2chq8rq3w4dnmxg2gn0r7bmz2k";
|
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;
|
|
|
|
};
|
|
|
|
}
|