1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/applications/version-management/pijul/default.nix

42 lines
1 KiB
Nix
Raw Normal View History

2020-11-09 12:03:31 +00:00
{ stdenv
, fetchCrate
, rustPlatform
, pkg-config
, libsodium
, openssl
, xxHash
, zstd
, darwin
, gitImportSupport ? true
, libgit2 ? null
}:
rustPlatform.buildRustPackage rec {
2019-08-31 12:41:23 +01:00
pname = "pijul";
version = "1.0.0-alpha.21";
2017-03-20 07:19:05 +00:00
2020-11-09 12:03:31 +00:00
src = fetchCrate {
inherit version pname;
sha256 = "0csa2a8ci6b9vgq57hyz2ng0x8pv1p1ilw72z2b8rrpacdrzb633";
2017-03-20 07:19:05 +00:00
};
cargoSha256 = "05z5iqs63s6cvaq4sjfxhcg5ka3rwn6ikcjs26jyqcbkp2bd9z88";
2020-11-09 12:03:31 +00:00
cargoBuildFlags = stdenv.lib.optional gitImportSupport "--features=git";
2017-03-20 07:19:05 +00:00
doCheck = false;
nativeBuildInputs = [ pkg-config ];
buildInputs = [ openssl libsodium xxHash zstd ]
2020-11-09 12:03:31 +00:00
++ (stdenv.lib.optionals gitImportSupport [ libgit2 ])
++ (stdenv.lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [
CoreServices Security SystemConfiguration
]));
2017-06-07 09:24:44 +01:00
2017-03-20 07:19:05 +00:00
meta = with stdenv.lib; {
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
};
}