about summary refs log tree commit diff
path: root/pkgs/misc/emulators
diff options
context:
space:
mode:
authorFranz Pletz <fpletz@fnordicwalking.de>2016-03-07 22:08:27 +0100
committerFranz Pletz <fpletz@fnordicwalking.de>2016-03-07 22:08:27 +0100
commite9fc4e7db63e91f3e787d9d3bfd91c798e8bd8bd (patch)
tree4f1e1a834fbbc0e201e0fb453801d005ed22d332 /pkgs/misc/emulators
parentbaee91ec60ca724b00027033a8e0d7f97cf376a7 (diff)
parentbcfb3dd9c605bf68730757cc60d01dec91f009f2 (diff)
downloadnixlib-e9fc4e7db63e91f3e787d9d3bfd91c798e8bd8bd.tar
nixlib-e9fc4e7db63e91f3e787d9d3bfd91c798e8bd8bd.tar.gz
nixlib-e9fc4e7db63e91f3e787d9d3bfd91c798e8bd8bd.tar.bz2
nixlib-e9fc4e7db63e91f3e787d9d3bfd91c798e8bd8bd.tar.lz
nixlib-e9fc4e7db63e91f3e787d9d3bfd91c798e8bd8bd.tar.xz
nixlib-e9fc4e7db63e91f3e787d9d3bfd91c798e8bd8bd.tar.zst
nixlib-e9fc4e7db63e91f3e787d9d3bfd91c798e8bd8bd.zip
Merge remote-tracking branch 'origin/master' into hardened-stdenv
Diffstat (limited to 'pkgs/misc/emulators')
-rw-r--r--pkgs/misc/emulators/retrofe/default.nix16
1 files changed, 7 insertions, 9 deletions
diff --git a/pkgs/misc/emulators/retrofe/default.nix b/pkgs/misc/emulators/retrofe/default.nix
index bf3091d1d706..a13cc49b5720 100644
--- a/pkgs/misc/emulators/retrofe/default.nix
+++ b/pkgs/misc/emulators/retrofe/default.nix
@@ -2,11 +2,7 @@
 , python, SDL2, SDL2_image, SDL2_mixer, SDL2_ttf, sqlite, zlib
 }:
 
-let
-  gstPlugins = with gst_all_1; [ gst-libav gst-plugins-base gst-plugins-good ];
-  GST_PLUGIN_PATH = stdenv.lib.makeSearchPath "lib/gstreamer-1.0" gstPlugins;
-
-in stdenv.mkDerivation rec {
+stdenv.mkDerivation rec {
   name = "retrofe-${version}";
   version = "0.6.169";
 
@@ -20,7 +16,7 @@ in stdenv.mkDerivation rec {
 
   buildInputs = [
     glib gst_all_1.gstreamer SDL2 SDL2_image SDL2_mixer SDL2_ttf sqlite zlib
-  ] ++ gstPlugins;
+  ] ++ (with gst_all_1; [ gst-libav gst-plugins-base gst-plugins-good ]);
 
   patches = [ ./include-paths.patch ];
 
@@ -58,22 +54,24 @@ in stdenv.mkDerivation rec {
     EOF
 
     chmod +x $out/bin/retrofe-init
+
+    runHook postInstall
   '';
 
   # retrofe will look for config files in its install path ($out/bin).
   # When set it will use $RETROFE_PATH instead. Sadly this behaviour isn't
   # documented well. To make it behave more like as expected it's set to
   # $PWD by default here.
-  fixupPhase = ''
+  postInstall = ''
     wrapProgram "$out/bin/retrofe" \
-      --prefix GST_PLUGIN_PATH : '${GST_PLUGIN_PATH}/lib/gstreamer-1.0' \
+      --prefix GST_PLUGIN_PATH : "$GST_PLUGIN_SYSTEM_PATH_1_0" \
       --set    RETROFE_PATH      "\''${RETROFE_PATH:-\$PWD}"
   '';
 
   meta = with stdenv.lib; {
     description = "A frontend for arcade cabinets and media PCs";
-    license = licenses.gpl3Plus;
     homepage = http://retrofe.com;
+    license = licenses.gpl3Plus;
     maintainers = with maintainers; [ hrdinka ];
   };
 }