2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv
|
2020-11-09 12:03:31 +00:00
|
|
|
, fetchCrate
|
|
|
|
, rustPlatform
|
|
|
|
, pkg-config
|
|
|
|
, libsodium
|
|
|
|
, openssl
|
|
|
|
, xxHash
|
|
|
|
, zstd
|
|
|
|
, darwin
|
|
|
|
, gitImportSupport ? true
|
|
|
|
, libgit2 ? null
|
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
2019-08-31 12:41:23 +01:00
|
|
|
pname = "pijul";
|
2021-03-03 07:12:09 +00:00
|
|
|
version = "1.0.0-alpha.46";
|
2017-03-20 07:19:05 +00:00
|
|
|
|
2020-11-09 12:03:31 +00:00
|
|
|
src = fetchCrate {
|
|
|
|
inherit version pname;
|
2021-03-03 07:12:09 +00:00
|
|
|
sha256 = "0x095g26qdch1m3izkn8ynwk1xg1qyz9ia8di23j61k7z2rqk0j5";
|
2017-03-20 07:19:05 +00:00
|
|
|
};
|
|
|
|
|
2021-03-03 07:12:09 +00:00
|
|
|
cargoSha256 = "0cw1y4vmhn70a94512mppk0kfh9xdfm0v4rp3zm00y06jzq1a1fp";
|
2019-05-17 21:40:08 +01:00
|
|
|
|
2021-01-15 13:21:58 +00:00
|
|
|
cargoBuildFlags = lib.optional gitImportSupport "--features=git";
|
2017-03-20 07:19:05 +00:00
|
|
|
|
|
|
|
doCheck = false;
|
2020-12-05 14:06:43 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
buildInputs = [ openssl libsodium xxHash zstd ]
|
2021-01-15 13:21:58 +00:00
|
|
|
++ (lib.optionals gitImportSupport [ libgit2 ])
|
|
|
|
++ (lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [
|
2020-11-09 12:03:31 +00:00
|
|
|
CoreServices Security SystemConfiguration
|
|
|
|
]));
|
2017-06-07 09:24:44 +01:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2017-03-20 07:19:05 +00:00
|
|
|
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
|
|
|
};
|
|
|
|
}
|