diff --git a/pkgs/os-specific/linux/pommed/default.nix b/pkgs/os-specific/linux/pommed/default.nix index d8ccaebea8c..d6c06eca12f 100644 --- a/pkgs/os-specific/linux/pommed/default.nix +++ b/pkgs/os-specific/linux/pommed/default.nix @@ -6,7 +6,6 @@ , dbus, dbus_glib , alsaLib , audiofile -, eject , pkgconfig , gtk , gettext @@ -30,7 +29,7 @@ stdenv.mkDerivation rec { sha256 = "18lxywmikanjr5pk1jdqda88dxd2579fpyd332xn4njjhlgwy5fp"; }; - patches = [ build_flags_patch ]; + patches = [ build_flags_patch ./find-eject-in-path.patch ]; buildInputs = [ pciutils @@ -38,7 +37,6 @@ stdenv.mkDerivation rec { dbus alsaLib audiofile - eject dbus_glib pkgconfig gtk diff --git a/pkgs/os-specific/linux/pommed/find-eject-in-path.patch b/pkgs/os-specific/linux/pommed/find-eject-in-path.patch new file mode 100644 index 00000000000..d021a0290ee --- /dev/null +++ b/pkgs/os-specific/linux/pommed/find-eject-in-path.patch @@ -0,0 +1,12 @@ +diff -Naur pommed-1.39-orig/pommed/cd_eject.c pommed-1.39/pommed/cd_eject.c +--- pommed-1.39-orig/pommed/cd_eject.c 2011-06-02 05:24:05.000000000 -0400 ++++ pommed-1.39/pommed/cd_eject.c 2012-03-20 14:25:33.397712520 -0400 +@@ -100,7 +100,7 @@ + for (fd = 3; fd < max_fd; fd++) + close(fd); + +- execve("/usr/bin/eject", eject_argv, eject_envp); ++ execvpe("eject", eject_argv, eject_envp); + + logmsg(LOG_ERR, "Could not execute eject: %s", strerror(errno)); + exit(1);