nixpkgs/pkgs/by-name/pi/pijul/package.nix
Ihar Hrachyshka dd0f03a56c treewide: remove usage of deprecated apple_sdk framework stubs
They are not doing anything right now. This is in preparation for their
complete removal from the tree.

Note: several changes that affect the derivation inputs (e.g. removal of
references to stub paths in build instructions) were left out. They will
be cleaned up the next iteration and will require special care.

Note: this PR is a result of a mix of ugly regex (not AST) based
automation and some manual labor. For reference, the regex automation
part was hacked in: https://github.com/booxter/nix-clean-apple_sdk

Signed-off-by: Ihar Hrachyshka <ihar.hrachyshka@gmail.com>
2025-04-19 20:28:20 -04:00

59 lines
1.3 KiB
Nix

{
lib,
stdenv,
fetchCrate,
rustPlatform,
installShellFiles,
pkg-config,
libsodium,
openssl,
xxHash,
gitImportSupport ? true,
libgit2 ? null,
}:
rustPlatform.buildRustPackage rec {
pname = "pijul";
version = "1.0.0-beta.9";
src = fetchCrate {
inherit version pname;
hash = "sha256-jy0mzgLw9iWuoWe2ictMTL3cHnjJ5kzs6TAK+pdm28g=";
};
useFetchCargoVendor = true;
cargoHash = "sha256-d2IlBtR3j6SF8AAagUQftCOqTqN70rDMlHkA9byxXyk=";
doCheck = false;
nativeBuildInputs = [
installShellFiles
pkg-config
];
buildInputs = [
openssl
libsodium
xxHash
] ++ (lib.optionals gitImportSupport [ libgit2 ]);
buildFeatures = lib.optional gitImportSupport "git";
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
installShellCompletion --cmd pijul \
--bash <($out/bin/pijul completion bash) \
--fish <($out/bin/pijul completion fish) \
--zsh <($out/bin/pijul completion zsh)
'';
meta = with lib; {
description = "Distributed version control system";
homepage = "https://pijul.org";
license = with licenses; [ gpl2Plus ];
maintainers = with maintainers; [
gal_bolle
dywedir
fabianhjr
];
mainProgram = "pijul";
};
}