41 lines
1 KiB
Nix
41 lines
1 KiB
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.52";
|
|
|
|
src = fetchCrate {
|
|
inherit version pname;
|
|
sha256 = "0m759zfh40kxswsv40z1l332lc8lfqppyv8188y4i6biqmgbx8f1";
|
|
};
|
|
|
|
cargoSha256 = "0f31hw2zjvhkhsb0ykvw4c3d0qy8zirgsaz7yr89hy01rs23bh8z";
|
|
|
|
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 fabianhjr ];
|
|
};
|
|
}
|