2020-11-09 12:03:31 +00:00
|
|
|
{ stdenv
|
|
|
|
, fetchCrate
|
|
|
|
, rustPlatform
|
|
|
|
, pkg-config
|
|
|
|
, clang
|
|
|
|
, libclang
|
|
|
|
, libsodium
|
|
|
|
, openssl
|
|
|
|
, xxHash
|
|
|
|
, zstd
|
|
|
|
, darwin
|
|
|
|
, gitImportSupport ? true
|
|
|
|
, libgit2 ? null
|
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
2019-08-31 12:41:23 +01:00
|
|
|
pname = "pijul";
|
2020-11-26 20:12:00 +00:00
|
|
|
version = "1.0.0-alpha.8";
|
2017-03-20 07:19:05 +00:00
|
|
|
|
2020-11-09 12:03:31 +00:00
|
|
|
src = fetchCrate {
|
|
|
|
inherit version pname;
|
2020-11-26 20:12:00 +00:00
|
|
|
sha256 = "01wag3ckqsa7r6zc7cla428w8hr49n2ybp31s42dqmsbak3xbc14";
|
2017-03-20 07:19:05 +00:00
|
|
|
};
|
|
|
|
|
2020-11-26 20:12:00 +00:00
|
|
|
cargoSha256 = "1hh4xmkhbbbkag3v25vh6zpn0r4fmipxmkcr8ahgrxf71dvyxj8x";
|
2019-05-17 21:40:08 +01:00
|
|
|
|
2020-11-09 12:03:31 +00:00
|
|
|
cargoBuildFlags = stdenv.lib.optional gitImportSupport "--features=git";
|
|
|
|
LIBCLANG_PATH = "${libclang}/lib";
|
2017-03-20 07:19:05 +00:00
|
|
|
|
|
|
|
doCheck = false;
|
2020-11-09 12:03:31 +00:00
|
|
|
nativeBuildInputs = [ pkg-config clang ];
|
|
|
|
buildInputs = [ openssl libclang libsodium xxHash zstd ]
|
|
|
|
++ (stdenv.lib.optionals gitImportSupport [ libgit2 ])
|
|
|
|
++ (stdenv.lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [
|
|
|
|
CoreServices Security SystemConfiguration
|
|
|
|
]));
|
2017-06-07 09:24:44 +01:00
|
|
|
|
2017-03-20 07:19:05 +00:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A distributed version control system";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://pijul.org";
|
2017-03-20 07:19:05 +00:00
|
|
|
license = with licenses; [ gpl2Plus ];
|
2020-11-09 12:03:31 +00:00
|
|
|
maintainers = with maintainers; [ gal_bolle dywedir ];
|
2017-03-20 07:19:05 +00:00
|
|
|
};
|
|
|
|
}
|