41 lines
1,009 B
Nix
41 lines
1,009 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-beta.2";
|
|
|
|
src = fetchCrate {
|
|
inherit version pname;
|
|
sha256 = "sha256-78nzCOR+AZuiAA1OpKKW4kfdUnlN8+qVaO3dknMck58=";
|
|
};
|
|
|
|
cargoSha256 = "sha256-IhjN0HjIIuP+P8yfZ3NmZpVZBAuetOr4OVZoI8Qfspo=";
|
|
|
|
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
|
|
]));
|
|
|
|
buildFeatures = lib.optional gitImportSupport "git";
|
|
|
|
meta = with lib; {
|
|
description = "A distributed version control system";
|
|
homepage = "https://pijul.org";
|
|
license = with licenses; [ gpl2Plus ];
|
|
maintainers = with maintainers; [ gal_bolle dywedir fabianhjr ];
|
|
};
|
|
}
|