nixpkgs/pkgs/applications/version-management/pijul/default.nix

42 lines
1016 B
Nix
Raw Normal View History

{ 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";
version = "1.0.0-alpha.48";
2017-03-20 07:19:05 +00:00
2020-11-09 12:03:31 +00:00
src = fetchCrate {
inherit version pname;
sha256 = "09sz5665nwj2jppx2695hbwdqr3ws6z6rg7mmc4ldb7hkp4yilig";
2017-03-20 07:19:05 +00:00
};
cargoSha256 = "1v5w5za7l3hy9anz136x0vgdmgg090f5sawzgrg5ylgxy2l9s2gn";
2021-01-15 13:21:58 +00:00
cargoBuildFlags = lib.optional gitImportSupport "--features=git";
2017-03-20 07:19:05 +00:00
doCheck = false;
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
meta = with lib; {
2017-03-20 07:19:05 +00:00
description = "A distributed version control system";
homepage = "https://pijul.org";
2017-03-20 07:19:05 +00:00
license = with licenses; [ gpl2Plus ];
2020-11-09 12:03:31 +00:00
maintainers = with maintainers; [ gal_bolle dywedir ];
2017-03-20 07:19:05 +00:00
};
}