From 467722ad1a49256842d2b42e38bee451309d8479 Mon Sep 17 00:00:00 2001 From: Cillian de Roiste Date: Sun, 29 Jan 2012 13:39:30 +0000 Subject: [PATCH] Patching the prefix, since it is hardcoded. The application seems to work correctly now, although it does crash with my current gtk theme (oxygen) when adding a stream. Using the gnome gtk-icon-theme does work, but this is probably just a bug in the oxygen gtk theme and should be fixed there. svn path=/nixpkgs/trunk/; revision=31913 --- pkgs/applications/video/dvswitch/default.nix | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/pkgs/applications/video/dvswitch/default.nix b/pkgs/applications/video/dvswitch/default.nix index 9ef9b678560..8803fe0a786 100644 --- a/pkgs/applications/video/dvswitch/default.nix +++ b/pkgs/applications/video/dvswitch/default.nix @@ -1,5 +1,6 @@ -{ stdenv, fetchurl, alsaLib, boost, cmake, gtkmm, libXau, libXdmcp, - libXv, libav, pixman, libpthreadstubs, pkgconfig }: +{ stdenv, fetchurl, alsaLib, boost, cmake, gtkmm, libXau, libXdmcp +, libXv, libav, pixman, libpthreadstubs, pkgconfig +}: stdenv.mkDerivation rec { name = "dvswitch-${version}"; @@ -15,13 +16,12 @@ stdenv.mkDerivation rec { libpthreadstubs pixman pkgconfig ]; - installPhase = " - ensureDir $out - cp src/dv* $out/ - "; + patchPhase = '' + sed -e "s@prefix /usr/local@prefix $out@" -i CMakeLists.txt + ''; meta = with stdenv.lib; { - description = "digital video mixer intended for interactive live mixing of several incoming DV video streams"; + description = "interactive live video mixer for DV streams"; homepage = "http://dvswitch.alioth.debian.org"; license = licenses.gpl2Plus; maintainers = [ maintainers.goibhniu ];