summary refs log tree commit diff
path: root/pkgs/applications/graphics/xara
diff options
context:
space:
mode:
authorMarc Weber <marco-oweber@gmx.de>2007-12-04 12:53:37 +0000
committerMarc Weber <marco-oweber@gmx.de>2007-12-04 12:53:37 +0000
commit800634501b9f5f5666ca20148b544ec27a3965e5 (patch)
treeb282f258fbf1b8b8e31cfa66fc15109a408a30f1 /pkgs/applications/graphics/xara
parent87d67364d8e1ca026efef2b8ba41e05ddea9eb85 (diff)
downloadnixpkgs-800634501b9f5f5666ca20148b544ec27a3965e5.tar
nixpkgs-800634501b9f5f5666ca20148b544ec27a3965e5.tar.gz
nixpkgs-800634501b9f5f5666ca20148b544ec27a3965e5.tar.bz2
nixpkgs-800634501b9f5f5666ca20148b544ec27a3965e5.tar.lz
nixpkgs-800634501b9f5f5666ca20148b544ec27a3965e5.tar.xz
nixpkgs-800634501b9f5f5666ca20148b544ec27a3965e5.tar.zst
nixpkgs-800634501b9f5f5666ca20148b544ec27a3965e5.zip
forgotten to commit this new default.nix
svn path=/nixpkgs/trunk/; revision=9855
Diffstat (limited to 'pkgs/applications/graphics/xara')
-rw-r--r--pkgs/applications/graphics/xara/default.nix26
1 files changed, 23 insertions, 3 deletions
diff --git a/pkgs/applications/graphics/xara/default.nix b/pkgs/applications/graphics/xara/default.nix
index 495e1f93076..89ba789524f 100644
--- a/pkgs/applications/graphics/xara/default.nix
+++ b/pkgs/applications/graphics/xara/default.nix
@@ -1,5 +1,5 @@
 {stdenv, fetchurl, autoconf, automake, gettext, libtool, cvs, wxGTK, gtk,
-pkgconfig, libxml2, zip, libpng, libjpeg}:
+pkgconfig, libxml2, zip, libpng, libjpeg, shebangfix, perl, freetype}:
 
 stdenv.mkDerivation {
   name = "xaralx-0.7r1766";
@@ -7,9 +7,29 @@ stdenv.mkDerivation {
     url = http://downloads2.xara.com/opensource/XaraLX-0.7r1766.tar.bz2;
     sha256 = "1rcl7hqvcai586jky7hvzxhnq8q0ka2rsmgiq5ijwclgr5d4ah7n";
   };
-  
-  buildInputs = [automake autoconf gettext libtool cvs wxGTK gtk pkgconfig libxml2 zip libpng libjpeg];
+    
+  buildInputs = [automake autoconf gettext libtool cvs wxGTK gtk pkgconfig libxml2 zip libpng libjpeg shebangfix perl];
+
+  inherit freetype libpng libjpeg libxml2;
   configureFlags = "--with-wx-config --disable-svnversion --disable-international";
 
   patches = [./gtk_cflags.patch];
+
+  # Why do I need to add library path for freetype ? 
+  installPhase = "
+    make install
+    ensureDir \$out/lib
+    mv \$out/{bin,lib}/XaraLX
+cat >> \$out/bin/XaraLX << EOF
+#!/bin/sh
+LD_LIBRARY_PATH=\$freetype/lib:\$libpng/lib:\$libjpeg/lib:\$libxml2/lib:
+\$out/lib/XaraLX \"\\$@\"
+EOF
+chmod +x \$out/bin/XaraLX
+";
+ 
+  patchPhase = "
+    find . -iname \"*.pl\" | xargs shebangfix;
+    unset patchPhase; patchPhase
+   "; 
 }