Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
78 lines
1.7 KiB
Nix
78 lines
1.7 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
rustPlatform,
|
|
fetchFromGitHub,
|
|
pkg-config,
|
|
installShellFiles,
|
|
libgit2,
|
|
openssl,
|
|
buildPackages,
|
|
versionCheckHook,
|
|
nix-update-script,
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage (finalAttrs: {
|
|
pname = "pixi";
|
|
version = "0.56.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "prefix-dev";
|
|
repo = "pixi";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-3YVIJLzFNJ5PlgT7NnxOtyA363A+qMpQPTr1N1E2daI=";
|
|
};
|
|
|
|
cargoHash = "sha256-z9lsxQ08ZJ1xjhIXSP6adO+sMJk3adUKrXqKJy4MA0g=";
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
installShellFiles
|
|
];
|
|
|
|
buildInputs = [
|
|
libgit2
|
|
openssl
|
|
];
|
|
|
|
env = {
|
|
LIBGIT2_NO_VENDOR = 1;
|
|
OPENSSL_NO_VENDOR = 1;
|
|
};
|
|
|
|
# As the version is updated, the number of failed tests continues to grow.
|
|
doCheck = false;
|
|
|
|
postInstall = lib.optionalString (stdenv.hostPlatform.emulatorAvailable buildPackages) (
|
|
let
|
|
emulator = stdenv.hostPlatform.emulator buildPackages;
|
|
in
|
|
''
|
|
installShellCompletion --cmd pixi \
|
|
--bash <(${emulator} $out/bin/pixi completion --shell bash) \
|
|
--fish <(${emulator} $out/bin/pixi completion --shell fish) \
|
|
--zsh <(${emulator} $out/bin/pixi completion --shell zsh)
|
|
''
|
|
);
|
|
|
|
nativeInstallCheckInputs = [
|
|
versionCheckHook
|
|
];
|
|
versionCheckProgramArg = "--version";
|
|
doInstallCheck = true;
|
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
meta = {
|
|
description = "Package management made easy";
|
|
homepage = "https://pixi.sh/";
|
|
changelog = "https://pixi.sh/latest/CHANGELOG";
|
|
license = lib.licenses.bsd3;
|
|
maintainers = with lib.maintainers; [
|
|
edmundmiller
|
|
xiaoxiangmoe
|
|
];
|
|
mainProgram = "pixi";
|
|
};
|
|
})
|