summary refs log tree commit diff
diff options
context:
space:
mode:
authorPeder Bergebakken Sundt <pbsds@hotmail.com>2023-11-16 21:42:13 +0100
committerPeder Bergebakken Sundt <pbsds@hotmail.com>2023-11-16 21:42:13 +0100
commitdc2ce0af94b9d5bc58fcfe4b01c446f5e92c8de8 (patch)
tree0ffebd4722432d5f505a4a3d57fd61dfa02cac3a
parent54da2986be07ad2ffbade0b3cefaf7f0c2553c88 (diff)
downloadnixpkgs-dc2ce0af94b9d5bc58fcfe4b01c446f5e92c8de8.tar
nixpkgs-dc2ce0af94b9d5bc58fcfe4b01c446f5e92c8de8.tar.gz
nixpkgs-dc2ce0af94b9d5bc58fcfe4b01c446f5e92c8de8.tar.bz2
nixpkgs-dc2ce0af94b9d5bc58fcfe4b01c446f5e92c8de8.tar.lz
nixpkgs-dc2ce0af94b9d5bc58fcfe4b01c446f5e92c8de8.tar.xz
nixpkgs-dc2ce0af94b9d5bc58fcfe4b01c446f5e92c8de8.tar.zst
nixpkgs-dc2ce0af94b9d5bc58fcfe4b01c446f5e92c8de8.zip
nix-update: set `meta.mainProgram`
-rw-r--r--pkgs/common-updater/nix-update.nix2
-rw-r--r--pkgs/games/steam/runtime.nix2
-rw-r--r--pkgs/tools/package-management/nix-update/default.nix1
3 files changed, 3 insertions, 2 deletions
diff --git a/pkgs/common-updater/nix-update.nix b/pkgs/common-updater/nix-update.nix
index 269e1b6e645..342b1677c6d 100644
--- a/pkgs/common-updater/nix-update.nix
+++ b/pkgs/common-updater/nix-update.nix
@@ -4,4 +4,4 @@
 , extraArgs ? [ ]
 }:
 
-[ "${nix-update}/bin/nix-update" ] ++ extraArgs ++ lib.optional (attrPath != null) attrPath
+[ "${lib.getExe nix-update}" ] ++ extraArgs ++ lib.optional (attrPath != null) attrPath
diff --git a/pkgs/games/steam/runtime.nix b/pkgs/games/steam/runtime.nix
index c8c67e94b4a..593d78afe0c 100644
--- a/pkgs/games/steam/runtime.nix
+++ b/pkgs/games/steam/runtime.nix
@@ -24,7 +24,7 @@ stdenv.mkDerivation rec {
   passthru = {
     updateScript = writeShellScript "update.sh" ''
       version=$(${curl}/bin/curl https://repo.steampowered.com/steamrt-images-scout/snapshots/latest-steam-client-general-availability/VERSION.txt)
-      ${nix-update}/bin/nix-update --version "$version" steamPackages.steam-runtime
+      ${lib.getExe nix-update} --version "$version" steamPackages.steam-runtime
     '';
   };
 
diff --git a/pkgs/tools/package-management/nix-update/default.nix b/pkgs/tools/package-management/nix-update/default.nix
index 755286ec870..20d5c3105e9 100644
--- a/pkgs/tools/package-management/nix-update/default.nix
+++ b/pkgs/tools/package-management/nix-update/default.nix
@@ -37,6 +37,7 @@ python3.pkgs.buildPythonApplication rec {
     changelog = "https://github.com/Mic92/nix-update/releases/tag/${version}";
     license = licenses.mit;
     maintainers = with maintainers; [ figsoda mic92 zowoq ];
+    mainProgram = "nix-update";
     platforms = platforms.all;
   };
 }