Merge pull request #267957 from pbsds/nix-update-main-program

This commit is contained in:
Artturi 2023-11-17 00:36:48 +02:00 committed by GitHub
commit 839563108f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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;
};
}