treewide: correct versionCheckHook use (#376275)

This commit is contained in:
Philip Taron
2025-01-26 15:38:28 -08:00
committed by GitHub
10 changed files with 41 additions and 10 deletions
+4 -1
View File
@@ -39,7 +39,10 @@ stdenv.mkDerivation {
installShellCompletion --zsh shell-completion/zsh/_aerospace
'';
passthru.tests.can-print-version = [ versionCheckHook ];
doInstallCheck = true;
nativeInstallCheckInputs = [
versionCheckHook
];
passthru.updateScript = gitUpdater {
url = "https://github.com/nikitabobko/AeroSpace.git";
+5 -1
View File
@@ -31,13 +31,17 @@ stdenv.mkDerivation (finalAttrs: {
meson
ninja
xxd
versionCheckHook
];
buildInputs = [
argtable
ncurses
];
doInstallCheck = true;
nativeInstallCheckInputs = [
versionCheckHook
];
postPatch = ''
mkdir -p data
ln -s ${finalAttrs.bsc5File} data/bsc5
@@ -22,6 +22,7 @@ buildGo122Module rec {
'';
};
doInstallCheck = true;
nativeInstallCheckInputs = [
versionCheckHook
];
+2
View File
@@ -48,6 +48,8 @@ buildGoModule rec {
--zsh <($out/bin/deepsource completion zsh)
'';
doInstallCheck = true;
versionCheckProgramArg = [ "version" ];
nativeInstallCheckInputs = [
versionCheckHook
];
@@ -67,7 +67,6 @@ stdenv.mkDerivation (finalAttrs: {
pkg-config
rustPlatform.cargoSetupHook
rustc
versionCheckHook
wrapGAppsHook4
];
@@ -87,6 +86,14 @@ stdenv.mkDerivation (finalAttrs: {
zlib
];
# FIXME: error when running `env -i envision`:
# "HOME env var not defined: NotPresent"
doInstallCheck = false;
versionCheckProgram = "${placeholder "out"}/bin/envision";
nativeInstallCheckInputs = [
versionCheckHook
];
postInstall = ''
wrapProgram $out/bin/envision \
--prefix PATH : "${lib.makeBinPath [ gdb ]}"
+9 -1
View File
@@ -16,6 +16,11 @@ buildGoModule rec {
hash = "sha256-7wCBflX34prZJl4HhZUU2a2qHxaBs1fMKHpwE0vX1GE=";
};
postPatch = ''
substituteInPlace main.go \
--replace-fail 'Version = "1.28.0"' 'Version = "${version}"'
'';
vendorHash = "sha256-Y5yg54em+vqoWXxS3JVQVPEM+fLXgoblmY+48WpxSCQ=";
doCheck = false;
@@ -25,7 +30,10 @@ buildGoModule rec {
"-w"
];
nativeInputChecks = [
# FIXME: error when running `env -i gollama`:
# "Error initializing logging: $HOME is not defined"
doInstallCheck = false;
nativeInstallCheckInputs = [
versionCheckHook
];
+4
View File
@@ -26,6 +26,10 @@ rustPlatform.buildRustPackage rec {
nativeCheckInputs = [
git
];
doInstallCheck = true;
nativeInstallCheckInputs = [
versionCheckHook
];
+2 -1
View File
@@ -70,7 +70,8 @@ python3Packages.buildPythonApplication rec {
done
'';
nativeCheckInputs = [
doInstallCheck = true;
nativeInstallCheckInputs = [
versionCheckHook
];
versionCheckProgramArg = [ "--version" ];
+2 -1
View File
@@ -23,7 +23,8 @@ python3Packages.buildPythonApplication rec {
nvidia-ml-py
];
nativeCheckInputs = [
doInstallCheck = true;
nativeInstallCheckInputs = [
versionCheckHook
];
versionCheckProgramArg = [ "--version" ];
+4 -4
View File
@@ -50,6 +50,10 @@ stdenvNoCC.mkDerivation {
installShellCompletion --bash --name up <(echo complete -C up up)
'';
# FIXME: error when running `env -i up`:
# "up: error: $HOME is not defined"
doInstallCheck = false;
versionCheckProgram = "${placeholder "out"}/bin/up";
versionCheckProgramArg = "version";
nativeInstallCheckInputs = [
@@ -63,10 +67,6 @@ stdenvNoCC.mkDerivation {
"${version-channel}"
];
passthru.tests = {
versionCheck = versionCheckHook;
};
meta = {
description = "CLI for interacting with Upbound Cloud, Upbound Enterprise, and Universal Crossplane (UXP)";
homepage = "https://upbound.io";