File tree Expand file tree Collapse file tree 3 files changed +25
-16
lines changed Expand file tree Collapse file tree 3 files changed +25
-16
lines changed Original file line number Diff line number Diff line change
1
+ {
2
+ punes ,
3
+ } :
4
+
5
+ punes . override {
6
+ withQt6 = true ;
7
+ }
Original file line number Diff line number Diff line change 12
12
libX11 ,
13
13
libXrandr ,
14
14
sndio ,
15
- qtbase ,
16
- qtsvg ,
17
- qttools ,
18
- wrapQtAppsHook ,
15
+ libsForQt5 ,
16
+ qt6Packages ,
17
+ withQt6 ? false ,
19
18
} :
20
19
20
+ let
21
+ qtPackages = if withQt6 then qt6Packages else libsForQt5 ;
22
+ in
21
23
stdenv . mkDerivation ( finalAttrs : {
22
24
pname = "punes" ;
23
25
version = "0.111" ;
24
26
25
27
src = fetchFromGitHub {
26
28
owner = "punesemu" ;
27
29
repo = "puNES" ;
28
- rev = "v${ finalAttrs . version } " ;
30
+ tag = "v${ finalAttrs . version } " ;
29
31
hash = "sha256-TIXjYkInWV3yVnvXrdHcmeWYeps5TcvkG2Xjg4roIds=" ;
30
32
} ;
31
33
@@ -50,16 +52,20 @@ stdenv.mkDerivation (finalAttrs: {
50
52
nativeBuildInputs = [
51
53
cmake
52
54
pkg-config
55
+ ]
56
+ ++ ( with qtPackages ; [
53
57
qttools
54
58
wrapQtAppsHook
55
- ] ;
59
+ ] ) ;
56
60
57
61
buildInputs = [
58
62
ffmpeg
59
63
libGLU
64
+ ]
65
+ ++ ( with qtPackages ; [
60
66
qtbase
61
67
qtsvg
62
- ]
68
+ ] )
63
69
++ lib . optionals stdenv . hostPlatform . isLinux [
64
70
alsa-lib
65
71
libX11
@@ -74,20 +80,20 @@ stdenv.mkDerivation (finalAttrs: {
74
80
"-DENABLE_RELEASE=ON"
75
81
"-DENABLE_FFMPEG=ON"
76
82
"-DENABLE_OPENGL=ON"
77
- "-DENABLE_QT6_LIBS= ${ if lib . versionAtLeast qtbase . version "6.0" then "ON" else "OFF" } "
83
+ ( lib . strings . cmakeBool "ENABLE_QT6_LIBS" withQt6 )
78
84
] ;
79
85
80
86
passthru . updateScript = gitUpdater {
81
87
rev-prefix = "v" ;
82
88
} ;
83
89
84
- meta = with lib ; {
90
+ meta = {
85
91
description = "Qt-based Nintendo Entertainment System emulator and NSF/NSFe Music Player" ;
86
92
mainProgram = "punes" ;
87
93
homepage = "https://github.com/punesemu/puNES" ;
88
94
changelog = "https://github.com/punesemu/puNES/blob/v${ finalAttrs . version } /ChangeLog" ;
89
- license = licenses . gpl2Plus ;
90
- maintainers = with maintainers ; [ OPNA2608 ] ;
91
- platforms = with platforms ; linux ++ freebsd ++ openbsd ++ windows ;
95
+ license = lib . licenses . gpl2Plus ;
96
+ maintainers = with lib . maintainers ; [ OPNA2608 ] ;
97
+ platforms = with lib . platforms ; linux ++ freebsd ++ openbsd ++ windows ;
92
98
} ;
93
99
} )
Original file line number Diff line number Diff line change @@ -1424,10 +1424,6 @@ with pkgs;
1424
1424
in
1425
1425
ppsspp.override argset;
1426
1426
1427
- punes = libsForQt5.callPackage ../applications/emulators/punes { };
1428
-
1429
- punes-qt6 = qt6Packages.callPackage ../applications/emulators/punes { };
1430
-
1431
1427
py65 = with python3.pkgs; toPythonApplication py65;
1432
1428
1433
1429
rmg-wayland = callPackage ../by-name/rm/rmg/package.nix {
You can’t perform that action at this time.
0 commit comments