summary refs log tree commit diff
path: root/pkgs/misc/emulators
diff options
context:
space:
mode:
authorOPNA2608 <christoph.neidahl@gmail.com>2022-01-04 05:14:19 +0100
committerOPNA2608 <christoph.neidahl@gmail.com>2022-01-04 05:14:19 +0100
commitbb94de58919f7a80a12e814c20459b972e78a139 (patch)
tree97c2c1ad00442ee9b80ff5063673a4b47254bc07 /pkgs/misc/emulators
parent864b47ba8d59f58259f4945f06b37f658414586d (diff)
downloadnixpkgs-bb94de58919f7a80a12e814c20459b972e78a139.tar
nixpkgs-bb94de58919f7a80a12e814c20459b972e78a139.tar.gz
nixpkgs-bb94de58919f7a80a12e814c20459b972e78a139.tar.bz2
nixpkgs-bb94de58919f7a80a12e814c20459b972e78a139.tar.lz
nixpkgs-bb94de58919f7a80a12e814c20459b972e78a139.tar.xz
nixpkgs-bb94de58919f7a80a12e814c20459b972e78a139.tar.zst
nixpkgs-bb94de58919f7a80a12e814c20459b972e78a139.zip
punes: unstable-2021-09-11 -> 0.108
Diffstat (limited to 'pkgs/misc/emulators')
-rw-r--r--pkgs/misc/emulators/punes/default.nix23
1 files changed, 17 insertions, 6 deletions
diff --git a/pkgs/misc/emulators/punes/default.nix b/pkgs/misc/emulators/punes/default.nix
index 860e90d23c3..9b147de4fa9 100644
--- a/pkgs/misc/emulators/punes/default.nix
+++ b/pkgs/misc/emulators/punes/default.nix
@@ -2,7 +2,8 @@
 , stdenv
 , lib
 , fetchFromGitHub
-, unstableGitUpdater
+, fetchpatch
+, nix-update-script
 , qtbase
 , qtsvg
 , qttools
@@ -19,15 +20,25 @@
 
 mkDerivation rec {
   pname = "punes";
-  version = "unstable-2021-09-11";
+  version = "0.108";
 
   src = fetchFromGitHub {
     owner = "punesemu";
     repo = "puNES";
-    rev = "60ca36fcb066c41d0b3f2b550ca94dc7d12d84d6";
-    sha256 = "JOi6AE1bpAc/wj9fQqHrUNc6vceeUyP0phT2f9kcJTY=";
+    rev = "v${version}";
+    sha256 = "0inkwmvbr2w4addmgk9r4f13yismang9ylfgflhh9352lf0lirv8";
   };
 
+  patches = [
+    # Drop when version > 0.108
+    # https://github.com/punesemu/puNES/issues/185
+    (fetchpatch {
+      name = "0001-punes-Fixed-make-install.patch";
+      url = "https://github.com/punesemu/puNES/commit/902434f50398ebcda0786ade4b28a0496084810e.patch";
+      sha256 = "1a3052n3n1qipi4bd7f7gq4zl5jjjzzzpbijdisis2vxvhnfvcim";
+    })
+  ];
+
   postPatch = ''
     substituteInPlace configure.ac \
       --replace '`$PKG_CONFIG --variable=host_bins Qt5Core`/lrelease' '${qttools.dev}/bin/lrelease'
@@ -49,8 +60,8 @@ mkDerivation rec {
     "--with-ffmpeg"
   ];
 
-  passthru.updateScript = unstableGitUpdater {
-    url = "https://github.com/punesemu/puNES.git";
+  passthru.updateScript = nix-update-script {
+    attrPath = pname;
   };
 
   meta = with lib; {