git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #61742 from abbradar/lutris

lutris: init at 0.5.2.1

commit68cae99370b22db4b4fb62b6b3828496c4a37f9d authorSilvan Mosberger <infinisil@icloud.com> dateMon 27 May 2019, 20:21 (7 years ago) parentea061fd59738ba
4 files changed+234
pkgs/applications/misc/lutris/default.nix+178 pkgs/misc/dumb/default.nix+29 pkgs/misc/sndio/default.nix+21 pkgs/top-level/all-packages.nix+6
pkgs/applications/misc/lutris/default.nixnew file+178
@@ -0,0 +1,178 @@
1+{ stdenv, pkgs, buildFHSUserEnv, makeDesktopItem, fetchFromGitHub, fetchpatch
2+, wrapGAppsHook, python2Packages, python3Packages }:
3+
4+let
5+ qt5Deps = with pkgs; with qt5; [ qtbase qtmultimedia ];
6+ gnome3Deps = with pkgs; with gnome3; [ zenity gtksourceview gnome-desktop libgnome-keyring webkitgtk ];
7+
8+ python3Deps = with pkgs; with python3Packages; [
9+ evdev pyyaml pyxdg pygobject3 pyqt5 dbus-python requests pillow
10+ ];
11+
12+ xorgDeps = with pkgs; with xorg; [
13+ libX11 libXrender libXrandr libxcb libXmu libpthreadstubs libXext libXdmcp
14+ libXxf86vm libXinerama libSM libXv libXaw libXi libXcursor libXcomposite
15+ xrandr xdg_utils
16+ ];
17+
18+ gstDeps = with pkgs; with gst_all_1; [
19+ gstreamer gst-plugins-base gst-plugins-good gst-plugins-bad gst-plugins-ugly
20+ gst-libav
21+ ];
22+
23+ deps = with pkgs; [
24+ # Common
25+ stdenv.cc.cc libGL libGLU_combined libsndfile libtheora libogg libvorbis
26+ libopus libGLU libpcap libpulseaudio libao libusb libevdev libudev libgcrypt
27+ libxml2 libusb libpng libmpeg2 libv4l libjpeg libxkbcommon libass libcdio
28+ libjack2 libsamplerate libzip libmad libaio libcap libtiff libva libgphoto2
29+ libxslt libtxc_dxtn libsndfile giflib zlib glib alsaLib zziplib bash dbus
30+ keyutils zip cabextract freetype unzip coreutils readline gcc SDL SDL2 curl
31+ graphite2 gtk2 gtk3 udev ncurses wayland libglvnd vulkan-loader
32+
33+ # Lutris
34+ gobjectIntrospection gdk_pixbuf pango openssl sqlite xterm libnotify procps
35+
36+ # Adventure Game Studio
37+ allegro dumb
38+
39+ # Desmume
40+ lua agg soundtouch openal desktop-file-utils pangox_compat atk
41+
42+ # DGen // TODO: libarchive is broken
43+
44+ # Dolphin
45+ bluez ffmpeg gettext portaudio wxGTK30 miniupnpc mbedtls lzo sfml gsm
46+ wavpack gnutls-kdh orc nettle gmp pcre vulkan-loader
47+
48+ # DOSBox
49+ SDL_net SDL_sound
50+
51+ # GOG
52+ glib-networking
53+
54+ # Higan // TODO: "higan is not available for the x86_64 architecture"
55+
56+ # Libretro
57+ fluidsynth hidapi mesa_noglu libdrm
58+
59+ # MAME
60+ qt48 fontconfig SDL2_ttf
61+
62+ # Mednafen
63+ freeglut mesa_glu
64+
65+ # MESS
66+ expat
67+
68+ # Minecraft
69+ nss
70+
71+ # Mupen64Plus
72+ boost dash
73+
74+ # Osmose
75+ qt4
76+
77+ # PCSX2 // TODO: "libgobject-2.0.so.0: wrong ELF class: ELFCLASS64"
78+
79+ # PPSSPP
80+ glew snappy
81+
82+ # Redream // "redream is not available for the x86_64 architecture"
83+
84+ # ResidualVM
85+ flac
86+
87+ # rpcs3 // TODO: "error while loading shared libraries: libz.so.1..."
88+ llvm_4
89+
90+ # ScummVM
91+ nasm sndio
92+
93+ # Snes9x
94+ epoxy minizip
95+
96+ # Steam
97+ steam
98+
99+ # Vice
100+ bison flex
101+
102+ # WINE
103+ perl which p7zip gnused gnugrep psmisc cups lcms2 mpg123 cairo unixODBC
104+ samba4 sane-backends openldap opencl-headers ocl-icd utillinux
105+
106+ (wine.override { wineBuild = "wineWow"; })
107+
108+ # ZDOOM
109+ soundfont-fluid bzip2 game-music-emu
110+ ] ++ qt5Deps
111+ ++ gnome3Deps
112+ ++ python3Deps
113+ ++ xorgDeps
114+ ++ gstDeps;
115+
116+ lutris = python3Packages.buildPythonApplication rec {
117+ name = "lutris-original-${version}";
118+ version = "0.5.2.1";
119+
120+ src = fetchFromGitHub {
121+ owner = "lutris";
122+ repo = "lutris";
123+ rev = "v${version}";
124+ sha256 = "023yqnzmnkfpq21r6ky6jzwbjxjcw1a5zqrrdl6fwwlr78fdhgpv";
125+ };
126+
127+ enableParallelBuilding = true;
128+ nativeBuildInputs = [ wrapGAppsHook ];
129+ propagatedBuildInputs = deps;
130+ fullPath = stdenv.lib.makeLibraryPath deps;
131+ preConfigure = "export HOME=$PWD";
132+
133+ makeWrapperArgs = [
134+ "--prefix LD_LIBRARY_PATH : ${fullPath}:$out/lib"
135+ "--set GI_TYPELIB_PATH $GI_TYPELIB_PATH"
136+ "--prefix XDG_DATA_DIRS : $out/share"
137+ "--suffix XDG_DATA_DIRS : $XDG_ICON_DIRS:$GSETTINGS_SCHEMAS_PATH"
138+ ];
139+
140+ postInstall = ''
141+ mkdir -p $out/lib
142+ ln -sf ${pkgs.gsm}/lib/libgsm.so $out/lib/libgsm.so.1
143+ mv $out/bin/lutris $out/bin/lutris-${version}
144+ '';
145+
146+ meta = with stdenv.lib; {
147+ homepage = "https://lutris.net";
148+ description = "Open Source gaming platform for GNU/Linux";
149+ license = licenses.gpl3;
150+ maintainers = with maintainers; [ chiiruno ];
151+ platforms = platforms.linux;
152+ };
153+ };
154+
155+ desktopItem = makeDesktopItem {
156+ name = "Lutris";
157+ exec = "lutris";
158+ icon = "lutris";
159+ comment = lutris.meta.description;
160+ desktopName = "Lutris";
161+ genericName = "Gaming Platform";
162+ categories = "Network;Game;Emulator;";
163+ startupNotify = "false";
164+ };
165+
166+in buildFHSUserEnv rec {
167+ name = "lutris";
168+
169+ runScript = "lutris-${lutris.version}";
170+ targetPkgs = pkgs: [ lutris pkgs.glxinfo pkgs.pciutils ];
171+ passthru.lutris = lutris;
172+
173+ extraInstallCommands = ''
174+ mkdir -p $out/share
175+ cp -r ${desktopItem}/share/applications $out/share
176+ ln -sf ${lutris}/share/icons $out/share
177+ '';
178+}
pkgs/misc/dumb/default.nixnew file+29
@@ -0,0 +1,29 @@
1+{ stdenv, fetchFromGitHub, cmake, allegro, SDL2 }:
2+
3+stdenv.mkDerivation rec {
4+ name = "dumb-${version}";
5+ version = "2.0.3";
6+ enableParallelBuilding = true;
7+ nativeBuildInputs = [ cmake ];
8+ buildInputs = [ allegro SDL2 ];
9+
10+ src = fetchFromGitHub {
11+ owner = "kode54";
12+ repo = "dumb";
13+ rev = version;
14+ sha256 = "1cnq6rb14d4yllr0yi32p9jmcig8avs3f43bvdjrx4r1mpawspi6";
15+ };
16+
17+ cmakeFlags = [
18+ "-DCMAKE_BUILD_TYPE='Release'"
19+ "-DBUILD_EXAMPLES='OFF'"
20+ ];
21+
22+ meta = with stdenv.lib; {
23+ homepage = "https://github.com/kode54/dumb";
24+ description = "Module/tracker based music format parser and player library";
25+ license = licenses.free; # Derivative of GPL
26+ maintainers = with maintainers; [ chiiruno ];
27+ platforms = platforms.all;
28+ };
29+}
pkgs/misc/sndio/default.nixnew file+21
@@ -0,0 +1,21 @@
1+{ stdenv, fetchurl, alsaLib }:
2+
3+stdenv.mkDerivation rec {
4+ name = "sndio-${version}";
5+ version = "1.2.0";
6+ enableParallelBuilding = true;
7+ buildInputs = [ alsaLib ];
8+
9+ src = fetchurl {
10+ url = "http://www.sndio.org/sndio-${version}.tar.gz";
11+ sha256 = "1p3cw7s6ylmvafbf9a5w5bkh3cy4s1d73hdh0i24m441jhc8x05r";
12+ };
13+
14+ meta = with stdenv.lib; {
15+ homepage = "http://www.sndio.org";
16+ description = "Small audio and MIDI framework part of the OpenBSD project";
17+ license = licenses.isc;
18+ maintainers = with maintainers; [ chiiruno ];
19+ platforms = platforms.all;
20+ };
21+}
pkgs/top-level/all-packages.nix+6
@@ -18830,6 +18830,8 @@ in
1883018830
1883118831 luppp = callPackage ../applications/audio/luppp { };
1883218832
18833+ lutris = callPackage ../applications/misc/lutris { };
18834+
1883318835 lv2bm = callPackage ../applications/audio/lv2bm { };
1883418836
1883518837 lynx = callPackage ../applications/networking/browsers/lynx { };
@@ -23102,6 +23104,8 @@ in
2310223104
2310323105 ekiga = callPackage ../applications/networking/instant-messengers/ekiga { };
2310423106
23107+ dumb = callPackage ../misc/dumb { };
23108+
2310523109 emulationstation = callPackage ../misc/emulators/emulationstation {
2310623110 stdenv = overrideCC stdenv gcc5;
2310723111 };
@@ -23507,6 +23511,8 @@ in
2350723511
2350823512 sam-ba = callPackage ../tools/misc/sam-ba { };
2350923513
23514+ sndio = callPackage ../misc/sndio { };
23515+
2351023516 opkg = callPackage ../tools/package-management/opkg { };
2351123517
2351223518 opkg-utils = callPackage ../tools/package-management/opkg-utils { };