staruml: fix internal node binary
The internal node binary is at least used for exporting in various picture formats and also PDF printing.
This commit is contained in:
parent
ac07f5acf6
commit
2a21dbe059
|
@ -1,11 +1,12 @@
|
||||||
{ stdenv, fetchurl, makeWrapper
|
{ stdenv, fetchurl, makeWrapper
|
||||||
, dpkg, patchelf
|
, 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
|
let
|
||||||
inherit (stdenv) lib;
|
inherit (stdenv) lib;
|
||||||
LD_LIBRARY_PATH = lib.makeLibraryPath
|
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
|
in
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
version = "2.8.1";
|
version = "2.8.1";
|
||||||
|
@ -34,17 +35,17 @@ stdenv.mkDerivation rec {
|
||||||
mkdir $out
|
mkdir $out
|
||||||
mv opt/staruml $out/bin
|
mv opt/staruml $out/bin
|
||||||
|
|
||||||
${patchelf}/bin/patchelf \
|
|
||||||
--interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
|
|
||||||
$out/bin/StarUML
|
|
||||||
|
|
||||||
mkdir -p $out/lib
|
mkdir -p $out/lib
|
||||||
|
|
||||||
ln -s ${stdenv.cc.cc.lib}/lib/libstdc++.so.6 $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
|
ln -s ${systemd.lib}/lib/libudev.so.1 $out/lib/libudev.so.0
|
||||||
|
|
||||||
wrapProgram $out/bin/StarUML \
|
for binary in StarUML Brackets-node; do
|
||||||
--prefix LD_LIBRARY_PATH : $out/lib:${LD_LIBRARY_PATH}
|
${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; {
|
meta = with stdenv.lib; {
|
||||||
|
|
Loading…
Reference in a new issue