treewide: avoid running dotnet fetch-deps script twice (#388989)

Changed files
+23 -86
pkgs
by-name
av
avalonia
fs
fsautocomplete
kr
lu
lumafly
ms
msbuild-structured-log-viewer
ne
nexusmods-app
op
opentabletdriver
ps
ps3-disc-dumper
to
v2
vr
development
tools
godot
+2 -1
pkgs/by-name/av/avalonia/update.bash
···
set -euo pipefail
+
export NIXPKGS_ALLOW_INSECURE=1 # uses EOL dotnet-sdk-7
package="$UPDATE_NIX_ATTR_PATH"
-
nix-update "$package"
+
nix-update "$package" --src-only
src=$(nix-build -A "$package".src --no-out-link)
npmDepsFile=$(nix-instantiate --eval -A "$package".npmDepsFile)
(
+1 -5
pkgs/by-name/fs/fsautocomplete/package.nix
···
fetchFromGitHub,
dotnetCorePackages,
testers,
-
_experimental-update-script-combinators,
nix-update-script,
}:
···
passthru = {
tests.version = testers.testVersion { package = finalAttrs.finalPackage; };
-
updateScript = _experimental-update-script-combinators.sequence [
-
(nix-update-script { })
-
finalAttrs.passthru.fetch-deps
-
];
+
updateScript = nix-update-script { };
};
meta = with lib; {
+2 -1
pkgs/by-name/kr/kryptor/package.nix
···
fetchFromGitHub,
dotnetCorePackages,
versionCheckHook,
+
nix-update-script,
}:
buildDotnetModule rec {
···
nativeInstallCheckInputs = [ versionCheckHook ];
passthru = {
-
updateScript = ./update.sh;
+
updateScript = nix-update-script { };
};
meta = {
-6
pkgs/by-name/kr/kryptor/update.sh
···
-
#!/usr/bin/env nix-shell
-
#!nix-shell --pure -i bash -p bash nix nix-update git cacert
-
set -euo pipefail
-
-
nix-update kryptor
-
$(nix-build . -A kryptor.fetch-deps --no-out-link)
+2 -11
pkgs/by-name/lu/lumafly/package.nix
···
icoutils,
copyDesktopItems,
makeDesktopItem,
-
writeScript,
+
nix-update-script,
}:
buildDotnetModule rec {
pname = "lumafly";
···
selfContainedBuild = true;
-
passthru.updateScript = writeScript "update-lumafly" ''
-
#!/usr/bin/env nix-shell
-
#!nix-shell --pure -i bash -p bash nix nix-update git cacert
-
set -eo pipefail
-
-
prev_version=$(nix eval --raw -f. lumafly.version)
-
nix-update lumafly
-
[[ $(nix eval --raw -f. lumafly.version) == "$prev_version" ]] ||
-
$(nix-build . -A lumafly.fetch-deps --no-out-link)
-
'';
+
passthru.updateScript = nix-update-script { };
runtimeDeps = [
zlib
+2 -6
pkgs/by-name/ms/msbuild-structured-log-viewer/package.nix
···
openssl,
libkrb5,
makeDesktopItem,
-
writeShellScript,
-
nix-update,
+
nix-update-script,
}:
buildDotnetModule (finalAttrs: rec {
pname = "msbuild-structured-log-viewer";
···
categories = [ "Development" ];
};
-
passthru.updateScript = writeShellScript "update-${finalAttrs.pname}" ''
-
${lib.getExe nix-update}
-
"$(nix-build -A "$UPDATE_NIX_ATTR_PATH.fetch-deps" --no-out-link)"
-
'';
+
passthru.updateScript = nix-update-script { };
meta = {
description = "Rich interactive log viewer for MSBuild logs";
+2 -1
pkgs/by-name/ne/nexusmods-app/package.nix
···
makeFontsConf,
runCommand,
xdg-utils,
+
nix-update-script,
pname ? "nexusmods-app",
}:
let
···
NexusMods.App list-tools
'';
};
-
updateScript = ./update.bash;
+
updateScript = nix-update-script { };
};
meta = {
-9
pkgs/by-name/ne/nexusmods-app/update.bash
···
-
#!/usr/bin/env nix-shell
-
#!nix-shell -I nixpkgs=./. -i bash -p nix-update
-
#shellcheck shell=bash
-
-
set -o errexit -o nounset -o pipefail
-
-
package=nexusmods-app
-
nix-update "$package"
-
"$(nix-build --attr "$package".fetch-deps --no-out-link)"
+2 -1
pkgs/by-name/op/opentabletdriver/package.nix
···
udev,
wrapGAppsHook3,
versionCheckHook,
+
nix-update-script,
}:
buildDotnetModule (finalAttrs: {
···
versionCheckProgram = "${placeholder "out"}/bin/otd-daemon";
passthru = {
-
updateScript = ./update.sh;
+
updateScript = nix-update-script { };
tests = {
otd-runs = nixosTests.opentabletdriver;
};
-8
pkgs/by-name/op/opentabletdriver/update.sh
···
-
#!/usr/bin/env nix-shell
-
#!nix-shell --pure -i bash -p bash nix nix-update git cacert
-
set -euo pipefail
-
-
prev_version=$(nix eval --raw -f. opentabletdriver.version)
-
nix-update opentabletdriver
-
[[ $(nix eval --raw -f. opentabletdriver.version) == "$prev_version" ]] ||
-
"$(nix-build . -A opentabletdriver.fetch-deps --no-out-link)"
+2 -1
pkgs/by-name/ps/ps3-disc-dumper/package.nix
···
zlib,
openssl,
dotnetCorePackages,
+
nix-update-script,
}:
buildDotnetModule rec {
···
openssl
];
-
passthru.updateScript = ./update.sh;
+
passthru.updateScript = nix-update-script { };
meta = {
description = "Handy utility to make decrypted PS3 disc dumps";
-8
pkgs/by-name/ps/ps3-disc-dumper/update.sh
···
-
#!/usr/bin/env nix-shell
-
#!nix-shell --pure -i bash -p bash nix nix-update git cacert
-
set -eo pipefail
-
-
prev_version=$(nix eval --raw -f. ps3-disc-dumper.version)
-
nix-update ps3-disc-dumper
-
[[ $(nix eval --raw -f. ps3-disc-dumper.version) == "$prev_version" ]] ||
-
$(nix-build . -A ps3-disc-dumper.fetch-deps --no-out-link)
+2 -1
pkgs/by-name/to/tone/package.nix
···
ffmpeg-full,
dotnetCorePackages,
versionCheckHook,
+
nix-update-script,
}:
buildDotnetModule rec {
···
doInstallCheck = true;
nativeInstallCheckInputs = [ versionCheckHook ];
-
passthru.updateScript = ./update.sh;
+
passthru.updateScript = nix-update-script { };
meta = {
homepage = "https://github.com/sandreas/tone";
-8
pkgs/by-name/to/tone/update.sh
···
-
#!/usr/bin/env nix-shell
-
#!nix-shell --pure -i bash -p bash nix nix-update git cacert
-
set -eo pipefail
-
-
prev_version=$(nix eval --raw -f. tone.version)
-
nix-update tone
-
[[ $(nix eval --raw -f. tone.version) == "$prev_version" ]] ||
-
"$(nix-build . -A tone.fetch-deps --no-out-link)"
+2 -1
pkgs/by-name/v2/v2rayn/package.nix
···
bash,
xorg,
xdg-utils,
+
nix-update-script,
}:
buildDotnetModule rec {
···
install -Dm644 v2rayN/v2rayN.Desktop/v2rayN.png $out/share/pixmaps/v2rayn.png
'';
-
passthru.updateScript = ./update.sh;
+
passthru.updateScript = nix-update-script { };
meta = {
description = "GUI client for Windows and Linux, support Xray core and sing-box-core and others";
-8
pkgs/by-name/v2/v2rayn/update.sh
···
-
#!/usr/bin/env nix-shell
-
#!nix-shell -i bash -p bash nix nix-update
-
-
set -eou pipefail
-
-
nix-update v2rayn
-
-
$(nix-build -A v2rayn.fetch-deps)
+2 -1
pkgs/by-name/vr/vrcadvert/package.nix
···
fetchFromGitHub,
lib,
versionCheckHook,
+
nix-update-script,
}:
buildDotnetModule rec {
···
];
versionCheckProgram = "${placeholder "out"}/bin/VrcAdvert";
-
passthru.updateScript = ./update.sh;
+
passthru.updateScript = nix-update-script { };
meta = {
description = "Advertise your OSC app through OSCQuery";
-8
pkgs/by-name/vr/vrcadvert/update.sh
···
-
#!/usr/bin/env nix-shell
-
#!nix-shell --pure -i bash -p bash nix nix-update git cacert
-
set -eo pipefail
-
-
prev_version=$(nix eval --raw -f. vrcadvert.version)
-
nix-update vrcadvert
-
[[ $(nix eval --raw -f. vrcadvert.version) == "$prev_version" ]] ||
-
$(nix-build . -A vrcadvert.fetch-deps --no-out-link)
+2 -1
pkgs/development/tools/godot/update.sh
···
prev_version=$UPDATE_NIX_OLD_VERSION
nix-update "$attr" \
--version-regex "($versionPrefix\\b.*-stable)" \
-
--override-filename "$2"
+
--override-filename "$2" \
+
--src-only
[[ $(nix eval --raw -f. "$attr".version) != "$prev_version" ]] || exit 0
"$(nix build --impure --expr "((import ./. {}).$attr.override { withMono = true; }).fetch-deps" --print-out-paths --no-link)"