mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-20 04:19:00 +02:00
nix-update: set meta.mainProgram
This commit is contained in:
parent
54da2986be
commit
dc2ce0af94
|
@ -4,4 +4,4 @@
|
||||||
, extraArgs ? [ ]
|
, extraArgs ? [ ]
|
||||||
}:
|
}:
|
||||||
|
|
||||||
[ "${nix-update}/bin/nix-update" ] ++ extraArgs ++ lib.optional (attrPath != null) attrPath
|
[ "${lib.getExe nix-update}" ] ++ extraArgs ++ lib.optional (attrPath != null) attrPath
|
||||||
|
|
|
@ -24,7 +24,7 @@ stdenv.mkDerivation rec {
|
||||||
passthru = {
|
passthru = {
|
||||||
updateScript = writeShellScript "update.sh" ''
|
updateScript = writeShellScript "update.sh" ''
|
||||||
version=$(${curl}/bin/curl https://repo.steampowered.com/steamrt-images-scout/snapshots/latest-steam-client-general-availability/VERSION.txt)
|
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
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -37,6 +37,7 @@ python3.pkgs.buildPythonApplication rec {
|
||||||
changelog = "https://github.com/Mic92/nix-update/releases/tag/${version}";
|
changelog = "https://github.com/Mic92/nix-update/releases/tag/${version}";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
maintainers = with maintainers; [ figsoda mic92 zowoq ];
|
maintainers = with maintainers; [ figsoda mic92 zowoq ];
|
||||||
|
mainProgram = "nix-update";
|
||||||
platforms = platforms.all;
|
platforms = platforms.all;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue