diff options
author | xeji <36407913+xeji@users.noreply.github.com> | 2018-05-15 15:29:38 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-15 15:29:38 +0200 |
commit | 4c2913215c9b1139a2d4a1afe1f831c8bcc06b4f (patch) | |
tree | 20171897372d61d9fc326985d0ea3322a1b24622 | |
parent | 699fa7e953caf49d8941828ce2c8293a87ce3240 (diff) | |
parent | 2a21dbe0597ef3f8b5340cc028327378411f0814 (diff) | |
download | nixlib-4c2913215c9b1139a2d4a1afe1f831c8bcc06b4f.tar nixlib-4c2913215c9b1139a2d4a1afe1f831c8bcc06b4f.tar.gz nixlib-4c2913215c9b1139a2d4a1afe1f831c8bcc06b4f.tar.bz2 nixlib-4c2913215c9b1139a2d4a1afe1f831c8bcc06b4f.tar.lz nixlib-4c2913215c9b1139a2d4a1afe1f831c8bcc06b4f.tar.xz nixlib-4c2913215c9b1139a2d4a1afe1f831c8bcc06b4f.tar.zst nixlib-4c2913215c9b1139a2d4a1afe1f831c8bcc06b4f.zip |
Merge pull request #40551 from steveeJ/steveej-staruml-bump-n-fix
staruml: 2.6.0 -> 2.8.1, fix internal node binary
-rw-r--r-- | pkgs/tools/misc/staruml/default.nix | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/pkgs/tools/misc/staruml/default.nix b/pkgs/tools/misc/staruml/default.nix index e1d6604970e5..2a06400b411f 100644 --- a/pkgs/tools/misc/staruml/default.nix +++ b/pkgs/tools/misc/staruml/default.nix @@ -1,23 +1,24 @@ { 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.6.0"; + version = "2.8.1"; name = "staruml-${version}"; src = if stdenv.system == "i686-linux" then fetchurl { url = "http://staruml.io/download/release/v${version}/StarUML-v${version}-32-bit.deb"; - sha256 = "684d7ce7827a98af5bf17bf68d18f934fd970f13a2112a121b1f1f76d6387849"; + sha256 = "0vb3k9m3l6pmsid4shlk0xdjsriq3gxzm8q7l04didsppg0vvq1n"; } else fetchurl { url = "http://staruml.io/download/release/v${version}/StarUML-v${version}-64-bit.deb"; - sha256 = "36e0bdc1bb57b7d808a007a3fafb1b38662d5b0793424d5ad4f51a3a6a9a636d"; + sha256 = "05gzrnlssjkhyh0wv019d4r7p40lxnsa1sghazll6f233yrqmxb0"; }; buildInputs = [ dpkg ]; @@ -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; { |