42 lines
1016 B
Nix
42 lines
1016 B
Nix
{ lib, stdenv
|
|
, fetchCrate
|
|
, rustPlatform
|
|
, pkg-config
|
|
, libsodium
|
|
, openssl
|
|
, xxHash
|
|
, zstd
|
|
, darwin
|
|
, gitImportSupport ? true
|
|
, libgit2 ? null
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "pijul";
|
|
version = "1.0.0-alpha.38";
|
|
|
|
src = fetchCrate {
|
|
inherit version pname;
|
|
sha256 = "0f14jkr1yswwyqz0l47b0287vpyz0g1qmksr3hkskhbmwlkf1q2b";
|
|
};
|
|
|
|
cargoSha256 = "08p2dq48d1islk02xz1j39402fqxfh4isf8qi219aivl0yciwjn3";
|
|
|
|
cargoBuildFlags = lib.optional gitImportSupport "--features=git";
|
|
|
|
doCheck = false;
|
|
nativeBuildInputs = [ pkg-config ];
|
|
buildInputs = [ openssl libsodium xxHash zstd ]
|
|
++ (lib.optionals gitImportSupport [ libgit2 ])
|
|
++ (lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [
|
|
CoreServices Security SystemConfiguration
|
|
]));
|
|
|
|
meta = with lib; {
|
|
description = "A distributed version control system";
|
|
homepage = "https://pijul.org";
|
|
license = with licenses; [ gpl2Plus ];
|
|
maintainers = with maintainers; [ gal_bolle dywedir ];
|
|
};
|
|
}
|