10 , gitImportSupport ? true
14 rustPlatform.buildRustPackage rec {
16 version = "1.0.0-beta.9";
19 inherit version pname;
20 hash = "sha256-jy0mzgLw9iWuoWe2ictMTL3cHnjJ5kzs6TAK+pdm28g=";
23 cargoHash = "sha256-iXGvb4qmZK7Sjbf/Jkyzj+nhpZFV3ngjtJfz6x/8z2s=";
26 nativeBuildInputs = [ installShellFiles pkg-config ];
27 buildInputs = [ openssl libsodium xxHash ]
28 ++ (lib.optionals gitImportSupport [ libgit2 ])
29 ++ (lib.optionals stdenv.hostPlatform.isDarwin (with darwin.apple_sdk.frameworks; [
30 CoreServices Security SystemConfiguration
33 buildFeatures = lib.optional gitImportSupport "git";
35 postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
36 installShellCompletion --cmd pijul \
37 --bash <($out/bin/pijul completion bash) \
38 --fish <($out/bin/pijul completion fish) \
39 --zsh <($out/bin/pijul completion zsh)
43 description = "Distributed version control system";
44 homepage = "https://pijul.org";
45 license = with licenses; [ gpl2Plus ];
46 maintainers = with maintainers; [ gal_bolle dywedir fabianhjr ];
47 mainProgram = "pijul";