Skip to content

Commit b169ebb

Browse files
author
poyo
committed
nxengine-evo: 2.6.4 -> 2.6.5-1
1 parent e4c5657 commit b169ebb

File tree

1 file changed

+8
-16
lines changed

1 file changed

+8
-16
lines changed

pkgs/by-name/nx/nxengine-evo/package.nix

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2,38 +2,30 @@
22
lib,
33
SDL2,
44
SDL2_mixer,
5+
SDL2_image,
56
callPackage,
67
cmake,
78
pkg-config,
89
ninja,
910
fetchFromGitHub,
1011
fetchpatch,
1112
libpng,
13+
libjpeg,
1214
stdenv,
1315
}:
1416

1517
stdenv.mkDerivation (finalAttrs: {
1618
pname = "nxengine-evo";
17-
version = "2.6.4";
19+
version = "2.6.5-1";
1820

1921
src = fetchFromGitHub {
2022
owner = "nxengine";
2123
repo = "nxengine-evo";
2224
rev = "v${finalAttrs.version}";
23-
hash = "sha256-krK2b1E5JUMxRoEWmb3HZMNSIHfUUGXSpyb4/Zdp+5A=";
25+
hash = "sha256-UufvtfottD9DrnjN9xhAlkNdW5Ha+vZwf/4uKDtF5ho=";
2426
};
2527

2628
patches = [
27-
# Fix building by adding SDL_MIXER to include path
28-
(fetchpatch {
29-
url = "https://github.com/nxengine/nxengine-evo/commit/1890127ec4b4b5f8d6cb0fb30a41868e95659840.patch";
30-
hash = "sha256-wlsIdN2RugOo94V3qj/AzYgrs2kf0i1Iw5zNOP8WQqI=";
31-
})
32-
# Fix buffer overflow
33-
(fetchpatch {
34-
url = "https://github.com/nxengine/nxengine-evo/commit/75b8b8e3b067fd354baa903332f2a3254d1cc017.patch";
35-
hash = "sha256-fZVaZAOHgFoNakOR2MfsvRJjuLhbx+5id/bcN8w/WWo=";
36-
})
3729
# Add missing include
3830
(fetchpatch {
3931
url = "https://github.com/nxengine/nxengine-evo/commit/0076ebb11bcfec5dc5e2e923a50425f1a33a4133.patch";
@@ -42,7 +34,6 @@ stdenv.mkDerivation (finalAttrs: {
4234
];
4335

4436
nativeBuildInputs = [
45-
SDL2
4637
cmake
4738
ninja
4839
pkg-config
@@ -51,7 +42,9 @@ stdenv.mkDerivation (finalAttrs: {
5142
buildInputs = [
5243
SDL2
5344
SDL2_mixer
45+
SDL2_image
5446
libpng
47+
libjpeg
5548
];
5649

5750
cmakeFlags = [
@@ -68,9 +61,8 @@ stdenv.mkDerivation (finalAttrs: {
6861
installPhase = ''
6962
runHook preInstall
7063
71-
cd ..
7264
mkdir -p $out/bin/ $out/share/nxengine/
73-
install bin/* $out/bin/
65+
install nxengine-evo $out/bin/
7466
''
7567
+ ''
7668
cp -r ${finalAttrs.finalPackage.assets}/share/nxengine/data $out/share/nxengine/data
@@ -91,7 +83,7 @@ stdenv.mkDerivation (finalAttrs: {
9183
license = with lib.licenses; [
9284
gpl3Plus
9385
];
94-
mainProgram = "nx";
86+
mainProgram = "nxengine-evo";
9587
maintainers = [ ];
9688
platforms = lib.platforms.linux;
9789
};

0 commit comments

Comments
 (0)