about summary refs log tree commit diff
path: root/pkgs/applications/video/kmplayer
diff options
context:
space:
mode:
authorSong Wenwu <iyzsong@gmail.com>2013-06-25 07:32:04 +0800
committerSong Wenwu <iyzsong@gmail.com>2013-06-25 07:32:04 +0800
commitf305fe1c02b223463af9263a9800fc6b606527db (patch)
tree0e08bc698d8e82f9e6b3bef3947c2c56d51c5f86 /pkgs/applications/video/kmplayer
parentc74b3e26f74cc28995f0e4ed4cce487f1c07d481 (diff)
kmplayer: minor fixes
Wrap mplayer into PATH
Remove unneeded dependency on gtk
Diffstat (limited to 'pkgs/applications/video/kmplayer')
-rw-r--r--pkgs/applications/video/kmplayer/default.nix11
1 files changed, 8 insertions, 3 deletions
diff --git a/pkgs/applications/video/kmplayer/default.nix b/pkgs/applications/video/kmplayer/default.nix
index 5f6c2259d1cb3..553b86a3801e3 100644
--- a/pkgs/applications/video/kmplayer/default.nix
+++ b/pkgs/applications/video/kmplayer/default.nix
@@ -1,5 +1,5 @@
-{ stdenv, fetchurl, cmake, pkgconfig, gettext
-, kdelibs, gtk
+{ stdenv, fetchurl, cmake, pkgconfig, gettext, makeWrapper
+, kdelibs, cairo, dbus_glib, mplayer
 }:
 
 stdenv.mkDerivation {
@@ -11,9 +11,14 @@ stdenv.mkDerivation {
   };
 
   buildInputs = [
-    cmake gettext pkgconfig kdelibs gtk
+    cmake gettext pkgconfig makeWrapper
+    kdelibs cairo dbus_glib
   ];
 
+  postInstall = ''
+    wrapProgram $out/bin/kmplayer --suffix PATH : ${mplayer}/bin
+  '';
+
   meta = {
     description = "MPlayer front-end for KDE";
     license = "GPL";