mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 15:03:28 +00:00
pcsx2-bin: added passthru.updateScript
This commit is contained in:
parent
8d75ee9c03
commit
89f2921956
@ -32,16 +32,22 @@ stdenvNoCC.mkDerivation (finalAttrs: {
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
passthru = {
|
||||
updateScript = ./update.sh;
|
||||
};
|
||||
|
||||
meta = {
|
||||
inherit (pcsx2.meta) homepage longDescription license changelog downloadPage;
|
||||
inherit (pcsx2.meta)
|
||||
homepage
|
||||
longDescription
|
||||
license
|
||||
changelog
|
||||
downloadPage
|
||||
;
|
||||
description = "Playstation 2 emulator; precompiled binary for MacOS, repacked from official website";
|
||||
maintainers = with lib.maintainers; [
|
||||
matteopacini
|
||||
];
|
||||
maintainers = with lib.maintainers; [ matteopacini ];
|
||||
mainProgram = "pcsx2-qt";
|
||||
platforms = lib.systems.inspect.patternLogicalAnd
|
||||
lib.systems.inspect.patterns.isDarwin
|
||||
lib.systems.inspect.patterns.isx86_64;
|
||||
platforms = lib.systems.inspect.patternLogicalAnd lib.systems.inspect.patterns.isDarwin lib.systems.inspect.patterns.isx86_64;
|
||||
sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
|
||||
};
|
||||
})
|
||||
|
8
pkgs/by-name/pc/pcsx2-bin/update.sh
Executable file
8
pkgs/by-name/pc/pcsx2-bin/update.sh
Executable file
@ -0,0 +1,8 @@
|
||||
#!/usr/bin/env nix-shell
|
||||
#!nix-shell -i bash -p curl jq gnused common-updater-scripts
|
||||
|
||||
set -eou pipefail
|
||||
|
||||
LATEST_VERSION="$(curl --silent --fail ${GITHUB_TOKEN:+-u ":$GITHUB_TOKEN"} "https://api.github.com/repos/PCSX2/pcsx2/releases" | jq '.[0].tag_name' --raw-output | sed 's/^v//')"
|
||||
|
||||
update-source-version pcsx2-bin "$LATEST_VERSION"
|
Loading…
Reference in New Issue
Block a user