punes: unstable-2021-09-11 -> 0.108
This commit is contained in:
parent
864b47ba8d
commit
bb94de5891
@ -2,7 +2,8 @@
|
|||||||
, stdenv
|
, stdenv
|
||||||
, lib
|
, lib
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, unstableGitUpdater
|
, fetchpatch
|
||||||
|
, nix-update-script
|
||||||
, qtbase
|
, qtbase
|
||||||
, qtsvg
|
, qtsvg
|
||||||
, qttools
|
, qttools
|
||||||
@ -19,15 +20,25 @@
|
|||||||
|
|
||||||
mkDerivation rec {
|
mkDerivation rec {
|
||||||
pname = "punes";
|
pname = "punes";
|
||||||
version = "unstable-2021-09-11";
|
version = "0.108";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "punesemu";
|
owner = "punesemu";
|
||||||
repo = "puNES";
|
repo = "puNES";
|
||||||
rev = "60ca36fcb066c41d0b3f2b550ca94dc7d12d84d6";
|
rev = "v${version}";
|
||||||
sha256 = "JOi6AE1bpAc/wj9fQqHrUNc6vceeUyP0phT2f9kcJTY=";
|
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 = ''
|
postPatch = ''
|
||||||
substituteInPlace configure.ac \
|
substituteInPlace configure.ac \
|
||||||
--replace '`$PKG_CONFIG --variable=host_bins Qt5Core`/lrelease' '${qttools.dev}/bin/lrelease'
|
--replace '`$PKG_CONFIG --variable=host_bins Qt5Core`/lrelease' '${qttools.dev}/bin/lrelease'
|
||||||
@ -49,8 +60,8 @@ mkDerivation rec {
|
|||||||
"--with-ffmpeg"
|
"--with-ffmpeg"
|
||||||
];
|
];
|
||||||
|
|
||||||
passthru.updateScript = unstableGitUpdater {
|
passthru.updateScript = nix-update-script {
|
||||||
url = "https://github.com/punesemu/puNES.git";
|
attrPath = pname;
|
||||||
};
|
};
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
Loading…
Reference in New Issue
Block a user