tangled
alpha
login
or
join now
tjh.dev
/
nixpkgs
0
fork
atom
nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
0
fork
atom
overview
issues
pulls
pipelines
sameboy: 0.16.7 -> 1.0.1
mrtnvgr
10 months ago
7a53b85f
e8958304
+39
-2
2 changed files
expand all
collapse all
unified
split
pkgs
by-name
sa
sameboy
package.nix
xdg-install-patch.diff
+10
-2
pkgs/by-name/sa/sameboy/package.nix
reviewed
···
7
7
SDL2,
8
8
wrapGAppsHook3,
9
9
glib,
10
10
+
gdk-pixbuf,
11
11
+
pkg-config,
10
12
}:
11
13
12
14
stdenv.mkDerivation rec {
13
15
pname = "sameboy";
14
14
-
version = "0.16.7";
16
16
+
version = "1.0.1";
15
17
16
18
src = fetchFromGitHub {
17
19
owner = "LIJI32";
18
20
repo = "SameBoy";
19
21
rev = "v${version}";
20
20
-
sha256 = "sha256-KUvhmORI3hIJFMCW8U2BZYnIwzg7h+GZZA4+U0IPS9E=";
22
22
+
sha256 = "sha256-rNP1jGnGqZG5jz8vQzqDNEKticg51uCcZQaUteawlPU=";
21
23
};
22
24
23
25
enableParallelBuilding = true;
24
26
# glib and wrapGAppsHook3 are needed to make the Open ROM menu work.
25
27
nativeBuildInputs = [
28
28
+
pkg-config
29
29
+
gdk-pixbuf
26
30
rgbds
27
31
glib
28
32
wrapGAppsHook3
···
37
33
"CONF=release"
38
34
"FREEDESKTOP=true"
39
35
"PREFIX=$(out)"
36
36
+
];
37
37
+
38
38
+
patches = [
39
39
+
./xdg-install-patch.diff
40
40
];
41
41
42
42
postPatch = ''
+29
pkgs/by-name/sa/sameboy/xdg-install-patch.diff
reviewed
···
1
1
+
diff --git a/Makefile b/Makefile
2
2
+
index 3377b3f..4492f96 100644
3
3
+
--- a/Makefile
4
4
+
+++ b/Makefile
5
5
+
@@ -788,15 +788,7 @@ install: $(BIN)/XdgThumbnailer/sameboy-thumbnailer sdl $(shell find FreeDesktop)
6
6
+
install -m 755 $(BIN)/SDL/sameboy $(DESTDIR)$(PREFIX)/bin/sameboy
7
7
+
install -m 755 $(BIN)/XdgThumbnailer/sameboy-thumbnailer $(DESTDIR)$(PREFIX)/bin/sameboy-thumbnailer
8
8
+
install -m 644 XdgThumbnailer/sameboy.thumbnailer $(DESTDIR)$(PREFIX)/share/thumbnailers/sameboy.thumbnailer
9
9
+
-ifeq ($(DESTDIR),)
10
10
+
- xdg-mime install --novendor FreeDesktop/sameboy.xml
11
11
+
- xdg-desktop-menu install --novendor FreeDesktop/sameboy.desktop
12
12
+
- for size in 16 32 64 128 256 512; do \
13
13
+
- xdg-icon-resource install --novendor --theme hicolor --size $$size --context apps FreeDesktop/AppIcon/$${size}x$${size}.png sameboy; \
14
14
+
- xdg-icon-resource install --novendor --theme hicolor --size $$size --context mimetypes FreeDesktop/Cartridge/$${size}x$${size}.png x-gameboy-rom; \
15
15
+
- xdg-icon-resource install --novendor --theme hicolor --size $$size --context mimetypes FreeDesktop/ColorCartridge/$${size}x$${size}.png x-gameboy-color-rom; \
16
16
+
- done
17
17
+
-else
18
18
+
+
19
19
+
install -m 644 FreeDesktop/sameboy.xml $(DESTDIR)$(PREFIX)/share/mime/sameboy.xml
20
20
+
install -m 644 FreeDesktop/sameboy.desktop $(DESTDIR)$(PREFIX)/share/applications/sameboy.desktop
21
21
+
for size in 16x16 32x32 64x64 128x128 256x256 512x512; do \
22
22
+
@@ -807,7 +799,6 @@ else
23
23
+
install -m 644 FreeDesktop/ColorCartridge/$$size.png $(DESTDIR)$(PREFIX)/share/icons/hicolor/$$size/mimetypes/x-gameboy-color-rom.png; \
24
24
+
done
25
25
+
endif
26
26
+
-endif
27
27
+
28
28
+
ios: bootroms
29
29
+
@$(MAKE) _ios