mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-12 02:40:31 +08:00
pixi: 0.38.0 -> 0.39.5 (#372173)
This commit is contained in:
7505
pkgs/by-name/pi/pixi/Cargo.lock
generated
7505
pkgs/by-name/pi/pixi/Cargo.lock
generated
File diff suppressed because it is too large
Load Diff
@@ -3,40 +3,38 @@
|
||||
stdenv,
|
||||
rustPlatform,
|
||||
fetchFromGitHub,
|
||||
fetchpatch,
|
||||
pkg-config,
|
||||
libgit2,
|
||||
openssl,
|
||||
installShellFiles,
|
||||
testers,
|
||||
pixi,
|
||||
buildPackages,
|
||||
versionCheckHook,
|
||||
nix-update-script,
|
||||
}:
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "pixi";
|
||||
version = "0.38.0";
|
||||
version = "0.39.5";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "prefix-dev";
|
||||
repo = "pixi";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-F15GDw6zolaa4IheKyJ9kdmdiLazUiDUhnUM8gH/hgk=";
|
||||
tag = "v${version}";
|
||||
hash = "sha256-Y4d8eMfsag2cNTaK8qnOGfi35kwwPrUy2y51EwVFrss=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
# There are multiple `version-ranges` entries which is not supported by buildRustPackage.
|
||||
cp -f ${./Cargo.lock} Cargo.lock
|
||||
'';
|
||||
|
||||
cargoLock = {
|
||||
lockFile = ./Cargo.lock;
|
||||
outputHashes = {
|
||||
"async_zip-0.0.17" = "sha256-3k9rc4yHWhqsCUJ17K55F8aQoCKdVamrWAn6IDWo3Ss=";
|
||||
"pubgrub-0.2.1" = "sha256-8TrOQ6fYJrYgFNuqiqnGztnHOqFIEDi2MFZEBA+oks4=";
|
||||
"reqwest-middleware-0.3.3" = "sha256-KjyXB65a7SAfwmxokH2PQFFcJc6io0xuIBQ/yZELJzM=";
|
||||
"tl-0.7.8" = "sha256-F06zVeSZA4adT6AzLzz1i9uxpI1b8P1h+05fFfjm3GQ=";
|
||||
"uv-auth-0.0.1" = "sha256-xy/fgy3+YvSdfq5ngPVbAmRpYyJH27Cft5QxBwFQumU=";
|
||||
};
|
||||
};
|
||||
# TODO: Remove this patch when the next version is released.
|
||||
cargoPatches = [
|
||||
(fetchpatch {
|
||||
# chore: make sure we only build one version of version-ranges
|
||||
# https://github.com/prefix-dev/pixi/commit/82fc219be3f5d1499922e89a5c458b7c154a7b8e
|
||||
url = "https://github.com/prefix-dev/pixi/commit/82fc219be3f5d1499922e89a5c458b7c154a7b8e.patch";
|
||||
hash = "sha256-fKDqUJtjxIQsCez95RObnJHQvdlxhmjJ+G7fJitE6v0=";
|
||||
})
|
||||
];
|
||||
useFetchCargoVendor = true;
|
||||
cargoHash = "sha256-oGlPxFwJVpBajJQ5XED98SUP8qw312nUSRND6ycEOjk=";
|
||||
|
||||
nativeBuildInputs = [
|
||||
pkg-config
|
||||
@@ -56,16 +54,25 @@ rustPlatform.buildRustPackage rec {
|
||||
# As the version is updated, the number of failed tests continues to grow.
|
||||
doCheck = false;
|
||||
|
||||
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
||||
installShellCompletion --cmd pixi \
|
||||
--bash <($out/bin/pixi completion --shell bash) \
|
||||
--fish <($out/bin/pixi completion --shell fish) \
|
||||
--zsh <($out/bin/pixi completion --shell zsh)
|
||||
'';
|
||||
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)
|
||||
''
|
||||
);
|
||||
|
||||
passthru.tests.version = testers.testVersion {
|
||||
package = pixi;
|
||||
};
|
||||
nativeInstallCheckInputs = [
|
||||
versionCheckHook
|
||||
];
|
||||
versionCheckProgramArg = [ "--version" ];
|
||||
doInstallCheck = true;
|
||||
|
||||
passthru.updateScript = nix-update-script { };
|
||||
|
||||
meta = {
|
||||
description = "Package management made easy";
|
||||
@@ -74,6 +81,7 @@ rustPlatform.buildRustPackage rec {
|
||||
maintainers = with lib.maintainers; [
|
||||
aaronjheng
|
||||
edmundmiller
|
||||
xiaoxiangmoe
|
||||
];
|
||||
mainProgram = "pixi";
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user