rattler-build: 0.33.1 -> 0.34.1 (#373448)

This commit is contained in:
Gaétan Lepage
2025-01-14 09:01:13 +01:00
committed by GitHub
+35 -13
View File
@@ -1,51 +1,73 @@
{
lib,
stdenv,
fetchFromGitHub,
rustPlatform,
versionCheckHook,
openssl,
pkg-config,
installShellFiles,
buildPackages,
versionCheckHook,
nix-update-script,
}:
rustPlatform.buildRustPackage rec {
pname = "rattler-build";
version = "0.33.1";
version = "0.34.1";
src = fetchFromGitHub {
owner = "prefix-dev";
repo = "rattler-build";
rev = "refs/tags/v${version}";
hash = "sha256-yceScRfZuMVnNVNVg3Xs+jU3spdFn0hPMmwMLaYzkNE=";
tag = "v${version}";
hash = "sha256-HDRQveWOJKGBWxN7ZyIECo1HBfz+vSaLW7ueSok+d64=";
};
useFetchCargoVendor = true;
cargoHash = "sha256-eJH7a+9asSPDv0gBwvLc4zssJGCY2jAfVKKOWb3oQ/Q=";
cargoHash = "sha256-b44bL/xVUwBdqwr/jawZbyV+yHsGR3hREm4nvHDMCWA=";
doCheck = false; # test requires network access
nativeBuildInputs = [
pkg-config
];
buildInputs = [
openssl
];
doInstallCheck = true;
nativeBuildInputs = [
pkg-config
installShellFiles
];
cargoBuildFlags = [ "--bin rattler-build" ]; # other bin like `generate-cli-docs` shouldn't be distributed.
postInstall = lib.optionalString (stdenv.hostPlatform.emulatorAvailable buildPackages) (
let
emulator = stdenv.hostPlatform.emulator buildPackages;
in
''
installShellCompletion --cmd rattler-build \
--bash <(${emulator} $out/bin/rattler-build completion --shell bash) \
--fish <(${emulator} $out/bin/rattler-build completion --shell fish) \
--zsh <(${emulator} $out/bin/rattler-build completion --shell zsh)
''
);
doInstallCheck = true;
nativeInstallCheckInputs = [
versionCheckHook
];
versionCheckProgramArg = [ "--version" ];
versionCheckProgramArg = [ "-V" ];
passthru.updateScript = nix-update-script { };
meta = {
description = "Universal package builder for Windows, macOS and Linux";
homepage = "https://github.com/prefix-dev/rattler-build";
homepage = "https://rattler.build/";
changelog = "https://github.com/prefix-dev/rattler-build/releases/tag/v${version}";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ genga898 ];
maintainers = with lib.maintainers; [
genga898
xiaoxiangmoe
];
mainProgram = "rattler-build";
};
}