about summary refs log tree commit diff
path: root/pkgs/tools/misc/staruml
diff options
context:
space:
mode:
authorStefan Junker <mail@stefanjunker.de>2018-05-15 14:57:18 +0200
committerStefan Junker <mail@stefanjunker.de>2018-05-15 14:57:18 +0200
commit2a21dbe0597ef3f8b5340cc028327378411f0814 (patch)
tree9dab210f59e367c082744d6391e6f8c4bea9a12e /pkgs/tools/misc/staruml
parentac07f5acf601e4dd44e7f1f6b3f8a03a244d939b (diff)
staruml: fix internal node binary
The internal node binary is at least used for exporting in various
picture formats and also PDF printing.
Diffstat (limited to 'pkgs/tools/misc/staruml')
-rw-r--r--pkgs/tools/misc/staruml/default.nix19
1 files changed, 10 insertions, 9 deletions
diff --git a/pkgs/tools/misc/staruml/default.nix b/pkgs/tools/misc/staruml/default.nix
index ef3fd53c4ecbe..2a06400b411f1 100644
--- a/pkgs/tools/misc/staruml/default.nix
+++ b/pkgs/tools/misc/staruml/default.nix
@@ -1,11 +1,12 @@
 { stdenv, fetchurl, makeWrapper
 , dpkg, patchelf
-, gtk2, glib, gdk_pixbuf, alsaLib, nss, nspr, GConf, cups, libgcrypt, dbus, systemd }:
+, gtk2, glib, gdk_pixbuf, alsaLib, nss, nspr, GConf, cups, libgcrypt, dbus, systemd
+, libXdamage }:
 
 let
   inherit (stdenv) lib;
   LD_LIBRARY_PATH = lib.makeLibraryPath
-    [ glib gtk2 gdk_pixbuf alsaLib nss nspr GConf cups libgcrypt dbus ];
+    [ glib gtk2 gdk_pixbuf alsaLib nss nspr GConf cups libgcrypt dbus libXdamage ];
 in
 stdenv.mkDerivation rec {
   version = "2.8.1";
@@ -34,17 +35,17 @@ stdenv.mkDerivation rec {
     mkdir $out
     mv opt/staruml $out/bin
 
-    ${patchelf}/bin/patchelf \
-      --interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
-      $out/bin/StarUML
-
     mkdir -p $out/lib
-
     ln -s ${stdenv.cc.cc.lib}/lib/libstdc++.so.6 $out/lib/
     ln -s ${systemd.lib}/lib/libudev.so.1 $out/lib/libudev.so.0
 
-    wrapProgram $out/bin/StarUML \
-      --prefix LD_LIBRARY_PATH : $out/lib:${LD_LIBRARY_PATH}
+    for binary in StarUML Brackets-node; do
+      ${patchelf}/bin/patchelf \
+        --interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
+        $out/bin/$binary
+      wrapProgram $out/bin/$binary \
+        --prefix LD_LIBRARY_PATH : $out/lib:${LD_LIBRARY_PATH}
+    done
   '';
 
   meta = with stdenv.lib; {