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 11:41:23 +00:00
|
|
|
pname = "pijul";
|
2022-07-05 08:04:33 +00:00
|
|
|
version = "1.0.0-beta.2";
|
2017-03-20 07:19:05 +00:00
|
|
|
|
2020-11-09 12:03:31 +00:00
|
|
|
src = fetchCrate {
|
|
|
|
inherit version pname;
|
2022-07-05 08:04:33 +00:00
|
|
|
sha256 = "sha256-78nzCOR+AZuiAA1OpKKW4kfdUnlN8+qVaO3dknMck58=";
|
2017-03-20 07:19:05 +00:00
|
|
|
};
|
|
|
|
|
2022-07-05 08:04:33 +00:00
|
|
|
cargoSha256 = "sha256-IhjN0HjIIuP+P8yfZ3NmZpVZBAuetOr4OVZoI8Qfspo=";
|
2019-05-17 20:40:08 +00:00
|
|
|
|
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 08:24:44 +00:00
|
|
|
|
2021-11-15 23:47:13 +00:00
|
|
|
buildFeatures = lib.optional gitImportSupport "git";
|
|
|
|
|
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 01:11:51 +00:00
|
|
|
homepage = "https://pijul.org";
|
2017-03-20 07:19:05 +00:00
|
|
|
license = with licenses; [ gpl2Plus ];
|
2021-07-13 15:46:06 +00:00
|
|
|
maintainers = with maintainers; [ gal_bolle dywedir fabianhjr ];
|
2017-03-20 07:19:05 +00:00
|
|
|
};
|
|
|
|
}
|