git.iko.soy/typeable/nixpkgs
on master help sign in
retrofe: fix gstreamer plugin path
commit56705a1fa372cc5948572feba2b4b0ec0ed20648 authorChristoph Hrdinka <c.git@hrdinka.at> dateSun 6 Mar 2016, 15:04 (11 years ago) parent12379f6
1 file changed+7−9
pkgs/misc/emulators/retrofe/default.nix+7−9
pkgs/misc/emulators/retrofe/default.nix+7−9
@@ -2,11 +2,7 @@
22, python, SDL2, SDL2_image, SDL2_mixer, SDL2_ttf, sqlite, zlib
33}:
44
5−let
6− gstPlugins = with gst_all_1; [ gst-libav gst-plugins-base gst-plugins-good ];
7− GST_PLUGIN_PATH = stdenv.lib.makeSearchPath "lib/gstreamer-1.0" gstPlugins;
8−
9−in stdenv.mkDerivation rec {
5+stdenv.mkDerivation rec {
106 name = "retrofe-${version}";
117 version = "0.6.169";
128
@@ -20,7 +16,7 @@ in stdenv.mkDerivation rec {
2016
2117 buildInputs = [
2218 glib gst_all_1.gstreamer SDL2 SDL2_image SDL2_mixer SDL2_ttf sqlite zlib
23− ] ++ gstPlugins;
19+ ] ++ (with gst_all_1; [ gst-libav gst-plugins-base gst-plugins-good ]);
2420
2521 patches = [ ./include-paths.patch ];
2622
@@ -58,22 +54,24 @@ in stdenv.mkDerivation rec {
5854 EOF
5955
6056 chmod +x $out/bin/retrofe-init
57+
58+ runHook postInstall
6159 '';
6260
6361 # retrofe will look for config files in its install path ($out/bin).
6462 # When set it will use $RETROFE_PATH instead. Sadly this behaviour isn't
6563 # documented well. To make it behave more like as expected it's set to
6664 # $PWD by default here.
67− fixupPhase = ''
65+ postInstall = ''
6866 wrapProgram "$out/bin/retrofe" \
69− --prefix GST_PLUGIN_PATH : '${GST_PLUGIN_PATH}/lib/gstreamer-1.0' \
67+ --prefix GST_PLUGIN_PATH : "$GST_PLUGIN_SYSTEM_PATH_1_0" \
7068 --set RETROFE_PATH "\''${RETROFE_PATH:-\$PWD}"
7169 '';
7270
7371 meta = with stdenv.lib; {
7472 description = "A frontend for arcade cabinets and media PCs";
75− license = licenses.gpl3Plus;
7673 homepage = http://retrofe.com;
74+ license = licenses.gpl3Plus;
7775 maintainers = with maintainers; [ hrdinka ];
7876 };
7977}