git.iko.soy/typeable/nixpkgs
on master help sign in
lutris: init at 0.5.2.1

Original derivation for version 0.4.18 by Chiiruno. With minor fixes by yegortimoshenko. Updated by 0.5.2.1 by abbradar.

commit59738bae067d733d5cbdb4183177bde73939966f authorOkina Matara <okinan@chiru.no> dateFri 15 Jun 2018, 13:17 (8 years ago) parent8eba6d4
2 files changed+180
pkgs/applications/misc/lutris/default.nix+178 pkgs/top-level/all-packages.nix+2
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/top-level/all-packages.nix+2
@@ -18711,6 +18711,8 @@ in
1871118711
1871218712 luppp = callPackage ../applications/audio/luppp { };
1871318713
18714+ lutris = callPackage ../applications/misc/lutris { };
18715+
1871418716 lv2bm = callPackage ../applications/audio/lv2bm { };
1871518717
1871618718 lynx = callPackage ../applications/networking/browsers/lynx { };