nix-update: set meta.mainProgram

This commit is contained in:
Peder Bergebakken Sundt 2023-11-16 21:42:13 +01:00
parent 54da2986be
commit dc2ce0af94
3 changed files with 3 additions and 2 deletions

View File

@ -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

View File

@ -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
'';
};

View File

@ -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;
};
}