1 { lib, stdenv, fetchFromGitHub, cmake, glib, gst_all_1, makeWrapper, pkg-config
2 , python3, SDL2, SDL2_image, SDL2_mixer, SDL2_ttf, sqlite, zlib, runtimeShell
9 src = fetchFromGitHub {
12 rev = "2ddd65a76210d241031c4ac9268255f311df25d1";
13 sha256 = "sha256-uBfECbU2Df/pPpEXXq62S7Ec0YU4lPIsZ8k5UmKD7xQ=";
16 nativeBuildInputs = [ cmake makeWrapper pkg-config python3 ];
19 glib gst_all_1.gstreamer SDL2 SDL2_image SDL2_mixer SDL2_ttf sqlite zlib
20 ] ++ (with gst_all_1; [ gst-libav gst-plugins-base gst-plugins-good ]);
23 cmake RetroFE/Source -BRetroFE/Build -DCMAKE_BUILD_TYPE=Release \
24 -DVERSION_MAJOR=0 -DVERSION_MINOR=0 -DVERSION_BUILD=0 \
28 cmake --build RetroFE/Build
29 python Scripts/Package.py --os=linux --build=full
34 mkdir -p $out/share/retrofe
35 cp -r Artifacts/linux/RetroFE $out/share/retrofe/example
36 mv $out/share/retrofe/example/retrofe $out/bin/
38 cat > $out/bin/retrofe-init << EOF
41 echo "This will install retrofe's example files into this directory"
42 echo "Example files location: $out/share/retrofe/example/"
45 read -p "Do you want to proceed? [yn] " yn
47 [Yy]* ) cp -r --no-preserve=all $out/share/retrofe/example/* .; break;;
49 * ) echo "Please answer with yes or no.";;
54 chmod +x $out/bin/retrofe-init
59 # retrofe will look for config files in its install path ($out/bin).
60 # When set it will use $RETROFE_PATH instead. Sadly this behaviour isn't
61 # documented well. To make it behave more like as expected it's set to
62 # $PWD by default here.
64 wrapProgram "$out/bin/retrofe" \
65 --prefix GST_PLUGIN_PATH : "$GST_PLUGIN_SYSTEM_PATH_1_0" \
66 --run 'export RETROFE_PATH=''${RETROFE_PATH:-$PWD}'
70 description = "Frontend for arcade cabinets and media PCs";
71 homepage = "http://retrofe.nl/";
72 license = licenses.gpl3Plus;
73 maintainers = with maintainers; [ hrdinka ];
74 platforms = with platforms; linux;