2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv
|
2020-11-12 09:05:59 +00:00
|
|
|
, fetchCrate
|
|
|
|
, rustPlatform
|
|
|
|
, pkg-config
|
|
|
|
, libsodium
|
|
|
|
, openssl
|
|
|
|
, xxHash
|
|
|
|
, zstd
|
|
|
|
, darwin
|
|
|
|
, gitImportSupport ? true
|
|
|
|
, libgit2 ? null
|
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "pijul";
|
2021-08-06 21:57:35 +00:00
|
|
|
version = "1.0.0-alpha.53";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-11-12 09:05:59 +00:00
|
|
|
src = fetchCrate {
|
|
|
|
inherit version pname;
|
2021-08-06 21:57:35 +00:00
|
|
|
sha256 = "1y5wnqscyfhd806qs6gfmssm7hvfdi7mxc9p1125jnmzca4wcsm2";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-08-06 21:57:35 +00:00
|
|
|
cargoSha256 = "0m9zjagq59rxf5pysklal030f4n0dqgmjsgwcnljajxc2r26665h";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-17 00:15:33 +00:00
|
|
|
cargoBuildFlags = lib.optional gitImportSupport "--features=git";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
doCheck = false;
|
2020-12-07 07:45:13 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
buildInputs = [ openssl libsodium xxHash zstd ]
|
2021-01-17 00:15:33 +00:00
|
|
|
++ (lib.optionals gitImportSupport [ libgit2 ])
|
|
|
|
++ (lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [
|
2020-11-12 09:05:59 +00:00
|
|
|
CoreServices Security SystemConfiguration
|
|
|
|
]));
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "A distributed version control system";
|
|
|
|
homepage = "https://pijul.org";
|
|
|
|
license = with licenses; [ gpl2Plus ];
|
2021-07-14 22:03:04 +00:00
|
|
|
maintainers = with maintainers; [ gal_bolle dywedir fabianhjr ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|