git.iko.soy/typeable/nixpkgs
on master help sign in
pcsxr: init at 1.9.94
commit38429f74b2b541647025a715b430ca0d26944965 authorRicardo Ardissone <ricardo.ardissone@gmail.com> dateThu 19 May 2016, 17:41 (11 years ago) parentbe5b596
2 files changed+89
pkgs/misc/emulators/pcsxr/default.nix+87 pkgs/top-level/all-packages.nix+2
pkgs/misc/emulators/pcsxr/default.nixnew file+87
@@ -0,0 +1,87 @@
1+{ stdenv, fetchurl, autoreconfHook, intltool, pkgconfig, gtk3, SDL2, xorg
2+, gsettings_desktop_schemas, makeWrapper, libcdio, nasm, ffmpeg, file
3+, fetchpatch }:
4+
5+stdenv.mkDerivation rec {
6+ name = "pcsxr-${version}";
7+ version = "1.9.94";
8+
9+ # codeplex does not support direct downloading
10+ src = fetchurl {
11+ url = "mirror://debian/pool/main/p/pcsxr/pcsxr_${version}.orig.tar.xz";
12+ sha256 = "0q7nj0z687lmss7sgr93ij6my4dmhkm2nhjvlwx48dn2lxl6ndla";
13+ };
14+
15+ patches = [
16+ ( fetchpatch {
17+ url = "https://anonscm.debian.org/cgit/pkg-games/pcsxr.git/plain/debian/patches/01_fix-i386-exec-stack.patch?h=debian/1.9.94-2";
18+ sha256 = "17497wjxd6b92bj458s2769d9bpp68ydbvmfs9gp51yhnq4zl81x";
19+ })
20+ ( fetchpatch {
21+ url = "https://anonscm.debian.org/cgit/pkg-games/pcsxr.git/plain/debian/patches/02_disable-ppc-auto-dynarec.patch?h=debian/1.9.94-2";
22+ sha256 = "0v8n79z034w6cqdrzhgd9fkdpri42mzvkdjm19x4asz94gg2i2kf";
23+ })
24+ ( fetchpatch {
25+ url = "https://anonscm.debian.org/cgit/pkg-games/pcsxr.git/plain/debian/patches/03_fix-plugin-dir.patch?h=debian/1.9.94-2";
26+ sha256 = "0vkl0mv6whqaz79kvvvlmlmjpynyq4lh352j3bbxcr0vjqffxvsy";
27+ })
28+ ( fetchpatch {
29+ url = "https://anonscm.debian.org/cgit/pkg-games/pcsxr.git/plain/debian/patches/04_update-homedir-symlinks.patch?h=debian/1.9.94-2";
30+ sha256 = "18r6n025ybr8fljfsaqm4ap31wp8838j73lrsffi49fkis60dp4j";
31+ })
32+ ( fetchpatch {
33+ url = "https://anonscm.debian.org/cgit/pkg-games/pcsxr.git/plain/debian/patches/05_format-security.patch?h=debian/1.9.94-2";
34+ sha256 = "03m4kfc9bk5669hf7ji1anild08diliapx634f9cigyxh72jcvni";
35+ })
36+ ( fetchpatch {
37+ url = "https://anonscm.debian.org/cgit/pkg-games/pcsxr.git/plain/debian/patches/06_warnings.patch?h=debian/1.9.94-2";
38+ sha256 = "0iz3g9ihnhisfgrzma9l74y4lhh57na9h41bmiam1millb796g71";
39+ })
40+ ( fetchpatch {
41+ url = "https://anonscm.debian.org/cgit/pkg-games/pcsxr.git/plain/debian/patches/07_non-linux-ip-addr.patch?h=debian/1.9.94-2";
42+ sha256 = "14vb9l0l4nzxcymhjjs4q57nmsncmby9qpdr7c19rly5wavm4k77";
43+ })
44+ ( fetchpatch {
45+ url = "https://anonscm.debian.org/cgit/pkg-games/pcsxr.git/plain/debian/patches/08_reproducible.patch?h=debian/1.9.94-2";
46+ sha256 = "1cx9q59drsk9h6l31097lg4aanaj93ysdz5p88pg9c7wvxk1qz06";
47+ })
48+ ];
49+
50+ buildInputs = [
51+ autoreconfHook intltool pkgconfig gtk3 SDL2 xorg.libXv xorg.libXtst
52+ makeWrapper libcdio nasm ffmpeg file
53+ ];
54+
55+ dynarecTarget =
56+ if stdenv.isx86_64 then "x86_64"
57+ else if stdenv.isi686 then "x86"
58+ else "no"; #debian patch 2 says ppc doesn't work
59+
60+ configureFlags = [
61+ "--enable-opengl"
62+ "--enable-ccdda"
63+ "--enable-libcdio"
64+ "--enable-dynarec=${dynarecTarget}"
65+ ];
66+
67+ postInstall = ''
68+ wrapProgram "$out/bin/pcsxr" \
69+ --prefix XDG_DATA_DIRS : "$GSETTINGS_SCHEMAS_PATH"
70+ mkdir -p "$out/share/doc/${name}"
71+ cp README \
72+ AUTHORS \
73+ doc/keys.txt \
74+ doc/tweaks.txt \
75+ ChangeLog.df \
76+ ChangeLog \
77+ "$out/share/doc/${name}"
78+ '';
79+
80+ meta = with stdenv.lib; {
81+ description = "Playstation 1 emulator";
82+ homepage = http://pcsxr.codeplex.com/;
83+ maintainers = with maintainers; [ rardiol ];
84+ license = licenses.gpl2Plus;
85+ platforms = platforms.all;
86+ };
87+}
pkgs/top-level/all-packages.nix+2
@@ -13686,6 +13686,8 @@ in
1368613686
1368713687 pbrt = callPackage ../applications/graphics/pbrt { };
1368813688
13689+ pcsxr = callPackage ../misc/emulators/pcsxr { };
13690+
1368913691 pcsx2 = callPackage_i686 ../misc/emulators/pcsx2 { };
1369013692
1369113693 pencil = callPackage ../applications/graphics/pencil { };