nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix

sameboy: 0.16.7 -> 1.0.1

mrtnvgr 7a53b85f e8958304

+39 -2
+10 -2
pkgs/by-name/sa/sameboy/package.nix
··· 7 7 SDL2, 8 8 wrapGAppsHook3, 9 9 glib, 10 + gdk-pixbuf, 11 + pkg-config, 10 12 }: 11 13 12 14 stdenv.mkDerivation rec { 13 15 pname = "sameboy"; 14 - version = "0.16.7"; 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 - sha256 = "sha256-KUvhmORI3hIJFMCW8U2BZYnIwzg7h+GZZA4+U0IPS9E="; 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 + pkg-config 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 + ]; 37 + 38 + patches = [ 39 + ./xdg-install-patch.diff 40 40 ]; 41 41 42 42 postPatch = ''
+29
pkgs/by-name/sa/sameboy/xdg-install-patch.diff
··· 1 + diff --git a/Makefile b/Makefile 2 + index 3377b3f..4492f96 100644 3 + --- a/Makefile 4 + +++ b/Makefile 5 + @@ -788,15 +788,7 @@ install: $(BIN)/XdgThumbnailer/sameboy-thumbnailer sdl $(shell find FreeDesktop) 6 + install -m 755 $(BIN)/SDL/sameboy $(DESTDIR)$(PREFIX)/bin/sameboy 7 + install -m 755 $(BIN)/XdgThumbnailer/sameboy-thumbnailer $(DESTDIR)$(PREFIX)/bin/sameboy-thumbnailer 8 + install -m 644 XdgThumbnailer/sameboy.thumbnailer $(DESTDIR)$(PREFIX)/share/thumbnailers/sameboy.thumbnailer 9 + -ifeq ($(DESTDIR),) 10 + - xdg-mime install --novendor FreeDesktop/sameboy.xml 11 + - xdg-desktop-menu install --novendor FreeDesktop/sameboy.desktop 12 + - for size in 16 32 64 128 256 512; do \ 13 + - xdg-icon-resource install --novendor --theme hicolor --size $$size --context apps FreeDesktop/AppIcon/$${size}x$${size}.png sameboy; \ 14 + - xdg-icon-resource install --novendor --theme hicolor --size $$size --context mimetypes FreeDesktop/Cartridge/$${size}x$${size}.png x-gameboy-rom; \ 15 + - xdg-icon-resource install --novendor --theme hicolor --size $$size --context mimetypes FreeDesktop/ColorCartridge/$${size}x$${size}.png x-gameboy-color-rom; \ 16 + - done 17 + -else 18 + + 19 + install -m 644 FreeDesktop/sameboy.xml $(DESTDIR)$(PREFIX)/share/mime/sameboy.xml 20 + install -m 644 FreeDesktop/sameboy.desktop $(DESTDIR)$(PREFIX)/share/applications/sameboy.desktop 21 + for size in 16x16 32x32 64x64 128x128 256x256 512x512; do \ 22 + @@ -807,7 +799,6 @@ else 23 + install -m 644 FreeDesktop/ColorCartridge/$$size.png $(DESTDIR)$(PREFIX)/share/icons/hicolor/$$size/mimetypes/x-gameboy-color-rom.png; \ 24 + done 25 + endif 26 + -endif 27 + 28 + ios: bootroms 29 + @$(MAKE) _ios