Unverified Commit d178d3d1 authored by Mario Rodas's avatar Mario Rodas Committed by GitHub
Browse files

Merge pull request #292798 from aaronjheng/pixi

pixi: 0.13.0 -> 0.15.2
parents cf95b107 a097e57c
Loading
Loading
Loading
Loading
+11 −4
Original line number Diff line number Diff line
@@ -12,16 +12,16 @@

rustPlatform.buildRustPackage rec {
  pname = "pixi";
  version = "0.13.0";
  version = "0.15.2";

  src = fetchFromGitHub {
    owner = "prefix-dev";
    repo = "pixi";
    rev = "v${version}";
    hash = "sha256-4EKJwHXNDUGhwlSSZFoPHdG5WBDoHFAQncG+CpD2sik=";
    hash = "sha256-bh8Uu6Q2AND50Qzivc6k1Z8JWudkHC2i4YW1Hxa69SM=";
  };

  cargoHash = "sha256-s1ODwuYv1x5/iP8yHS5FRk5MacrW81LaXI7/J+qtPNM=";
  cargoHash = "sha256-yMIcPwnuN7F2ZrOtJw8T+nxeSzLsYn+iC34bYeWpi/w=";

  nativeBuildInputs = [
    pkg-config
@@ -35,6 +35,13 @@ rustPlatform.buildRustPackage rec {
    with darwin.apple_sdk_11_0.frameworks; [ CoreFoundation IOKit SystemConfiguration Security ]
  );

  # There are some CI failures with Rattler. Tests on Aarch64 has been skipped.
  # See https://github.com/prefix-dev/pixi/pull/241.
  doCheck = !stdenv.isAarch64;

  preCheck = ''
    export HOME="$(mktemp -d)"
  '';

  checkFlags = [
    # Skip tests requiring network
@@ -49,7 +56,7 @@ rustPlatform.buildRustPackage rec {
  ];

  postInstall = ''
    installShellCompletion --cmd pix \
    installShellCompletion --cmd pixi \
      --bash <($out/bin/pixi completion --shell bash) \
      --fish <($out/bin/pixi completion --shell fish) \
      --zsh <($out/bin/pixi completion --shell zsh)