mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-15 13:37:21 +03:00
staruml: fix evaluation on closure-size
This commit is contained in:
parent
2cbe6bb3f0
commit
394ffcb3e5
@ -1,5 +1,12 @@
|
|||||||
{ stdenv, fetchurl, makeWrapper, dpkg, patchelf, gtk2, glib, gdk_pixbuf, alsaLib, nss, nspr, GConf, cups, libgcrypt, dbus, udev }:
|
{ stdenv, fetchurl, makeWrapper
|
||||||
|
, dpkg, patchelf
|
||||||
|
, gtk2, glib, gdk_pixbuf, alsaLib, nss, nspr, GConf, cups, libgcrypt, dbus, libudev }:
|
||||||
|
|
||||||
|
let
|
||||||
|
inherit (stdenv) lib;
|
||||||
|
LD_LIBRARY_PATH = lib.makeLibraryPath
|
||||||
|
[ glib gtk2 gdk_pixbuf alsaLib nss nspr GConf cups libgcrypt dbus ];
|
||||||
|
in
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
version = "2.6.0";
|
version = "2.6.0";
|
||||||
name = "staruml-${version}";
|
name = "staruml-${version}";
|
||||||
@ -16,13 +23,13 @@ stdenv.mkDerivation rec {
|
|||||||
buildInputs = [ dpkg ];
|
buildInputs = [ dpkg ];
|
||||||
|
|
||||||
nativeBuildInputs = [ makeWrapper ];
|
nativeBuildInputs = [ makeWrapper ];
|
||||||
|
|
||||||
unpackPhase = ''
|
unpackPhase = ''
|
||||||
mkdir pkg
|
mkdir pkg
|
||||||
dpkg-deb -x $src pkg
|
dpkg-deb -x $src pkg
|
||||||
sourceRoot=pkg
|
sourceRoot=pkg
|
||||||
'';
|
'';
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
mkdir $out
|
mkdir $out
|
||||||
mv opt/staruml $out/bin
|
mv opt/staruml $out/bin
|
||||||
@ -30,14 +37,14 @@ stdenv.mkDerivation rec {
|
|||||||
${patchelf}/bin/patchelf \
|
${patchelf}/bin/patchelf \
|
||||||
--interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
|
--interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
|
||||||
$out/bin/StarUML
|
$out/bin/StarUML
|
||||||
|
|
||||||
mkdir -p $out/lib
|
mkdir -p $out/lib
|
||||||
|
|
||||||
ln -s ${stdenv.cc.cc}/lib/libstdc++.so.6 $out/lib/
|
ln -s ${stdenv.cc.cc}/lib/libstdc++.so.6 $out/lib/
|
||||||
ln -s ${udev}/lib/libudev.so.1 $out/lib/libudev.so.0
|
ln -s ${libudev.out}/lib/libudev.so.1 $out/lib/libudev.so.0
|
||||||
|
|
||||||
wrapProgram $out/bin/StarUML \
|
wrapProgram $out/bin/StarUML \
|
||||||
--prefix LD_LIBRARY_PATH : $out/lib:${glib}/lib:${gtk2}/lib:${gdk_pixbuf}/lib/:${alsaLib}/lib/:${nss}/lib/:${nspr}/lib/:${GConf}/lib/:${cups}/lib/:${libgcrypt}/lib/:${dbus}/lib/
|
--prefix LD_LIBRARY_PATH : $out/lib:${LD_LIBRARY_PATH}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
|
Loading…
Reference in New Issue
Block a user