git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #29863 from yegortimoshenko/mednafen/0.9.48

mednafen: 0.9.47 -> 0.9.48, disable PIC, unversioned docs

commitda20916efa206decbfb9d25657be52c9083eac1c authorOrivej Desh <orivej@gmx.fr> dateThu 5 Oct 2017, 21:42 (9 years ago) parent3bd24be333a425
2 files changed+28−26
pkgs/misc/emulators/mednafen/default.nix+24−18 pkgs/misc/emulators/mednafen/server.nix+4−8
pkgs/misc/emulators/mednafen/default.nix+24−18
@@ -1,36 +1,42 @@
1−{ stdenv, fetchurl, pkgconfig
2−, libX11, mesa, freeglut
3−, libjack2, libcdio, libsndfile, libsamplerate
4−, SDL, SDL_net, zlib
5−}:
1+{ stdenv, fetchurl, pkgconfig, freeglut, mesa, libcdio, libjack2
2+, libsamplerate, libsndfile, libX11, SDL, SDL_net, zlib }:
63
7−with stdenv.lib;
84stdenv.mkDerivation rec {
9−
105 name = "mednafen-${version}";
11− version = "0.9.47";
6+ version = "0.9.48";
127
138 src = fetchurl {
149 url = "https://mednafen.github.io/releases/files/${name}.tar.xz";
15− sha256 = "0flz6bjkzs9qrw923s4cpqrz4b2dhc2w7pd8mgw0l1xbmrh7w4si";
10+ sha256 = "00i12mywhp43274aq466fwavglk5b7d8z8bfdna12ra9iy1hrk6k";
1611 };
1712
18− buildInputs =
19− [ pkgconfig libX11 mesa freeglut libjack2 libcdio
20− libsndfile libsamplerate SDL SDL_net zlib ];
13+ nativeBuildInputs = [ pkgconfig ];
14+
15+ buildInputs = [
16+ freeglut
17+ mesa
18+ libcdio
19+ libjack2
20+ libsamplerate
21+ libsndfile
22+ libX11
23+ SDL
24+ SDL_net
25+ zlib
26+ ];
27+
28+ hardeningDisable = [ "pic" ];
2129
22− # Install docs
2330 postInstall = ''
24− mkdir -p $out/share/doc/$name
25− cd Documentation
26− install -m 644 -t $out/share/doc/$name *.css *.def *.html *.php *.png *.txt
31+ mkdir -p $out/share/doc
32+ mv Documentation $out/share/doc/mednafen
2733 '';
2834
2935 meta = with stdenv.lib; {
3036 description = "A portable, CLI-driven, SDL+OpenGL-based, multi-system emulator";
31− homepage = http://mednafen.github.io/;
37+ homepage = https://mednafen.github.io/;
3238 license = licenses.gpl2;
33− maintainers = [ maintainers.AndersonTorres ];
39+ maintainers = with maintainers; [ AndersonTorres ];
3440 platforms = platforms.linux;
3541 };
3642}
pkgs/misc/emulators/mednafen/server.nix+4−8
@@ -1,25 +1,21 @@
11{ stdenv, fetchurl }:
22
33stdenv.mkDerivation rec {
4−
54 name = "mednafen-server-${version}";
65 version = "0.5.2";
76
87 src = fetchurl {
9− url = "https://mednafen.github.io/releases/files/mednafen-server-0.5.2.tar.xz";
8+ url = "https://mednafen.github.io/releases/files/mednafen-server-${version}.tar.xz";
109 sha256 = "0xm7dj5nwnrsv69r72rcnlw03jm0l8rmrg3s05gjfvxyqmlb36dq";
1110 };
1211
13− postInstall = ''
14− mkdir -p $out/share/$name
15− install -m 644 -t $out/share/$name standard.conf
16− '';
12+ postInstall = "install -m 644 -Dt $out/share/mednafen-server standard.conf";
1713
1814 meta = with stdenv.lib; {
1915 description = "Netplay server for Mednafen";
20− homepage = http://mednafen.github.io/;
16+ homepage = https://mednafen.github.io/;
2117 license = licenses.gpl2;
22− maintainers = [ maintainers.AndersonTorres ];
18+ maintainers = with maintainers; [ AndersonTorres ];
2319 platforms = platforms.linux;
2420 };
2521}