2020-09-25 04:45:31 +00:00
|
|
|
{ stdenv, lib, fetchurl, makeWrapper
|
2020-04-24 23:36:52 +00:00
|
|
|
, dpkg, patchelf
|
2021-08-27 14:25:00 +00:00
|
|
|
, gtk3, glib, systemd
|
|
|
|
, xorg, nss, nspr
|
|
|
|
, atk, at-spi2-atk, dbus
|
|
|
|
, gdk-pixbuf, pango, cairo
|
|
|
|
, expat, libdrm, mesa
|
|
|
|
, alsa-lib, at-spi2-core, cups }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
let
|
2021-08-27 14:25:00 +00:00
|
|
|
LD_LIBRARY_PATH = lib.makeLibraryPath [
|
|
|
|
glib gtk3 xorg.libXdamage
|
|
|
|
xorg.libX11 xorg.libxcb xorg.libXcomposite
|
|
|
|
xorg.libXcursor xorg.libXext xorg.libXfixes
|
|
|
|
xorg.libXi xorg.libXrender xorg.libXtst
|
|
|
|
nss nspr atk at-spi2-atk dbus
|
|
|
|
gdk-pixbuf pango cairo
|
|
|
|
xorg.libXrandr expat libdrm
|
|
|
|
mesa alsa-lib at-spi2-core
|
|
|
|
cups
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
in
|
|
|
|
stdenv.mkDerivation rec {
|
2021-12-06 16:07:01 +00:00
|
|
|
version = "4.1.6";
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "staruml";
|
|
|
|
|
|
|
|
src =
|
2021-08-27 14:25:00 +00:00
|
|
|
fetchurl {
|
|
|
|
url = "https://staruml.io/download/releases-v4/StarUML_${version}_amd64.deb";
|
2021-12-06 16:07:01 +00:00
|
|
|
sha256 = "sha256-CUOdpR8RExMLeOX8469egENotMNuPU4z8S1IGqA21z0=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ makeWrapper dpkg ];
|
|
|
|
|
|
|
|
unpackPhase = ''
|
|
|
|
mkdir pkg
|
|
|
|
dpkg-deb -x $src pkg
|
|
|
|
sourceRoot=pkg
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir $out
|
2021-08-27 14:25:00 +00:00
|
|
|
mv opt/StarUML $out/bin
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
mkdir -p $out/lib
|
|
|
|
ln -s ${stdenv.cc.cc.lib}/lib/libstdc++.so.6 $out/lib/
|
2020-09-25 04:45:31 +00:00
|
|
|
ln -s ${lib.getLib systemd}/lib/libudev.so.1 $out/lib/libudev.so.0
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-08-27 14:25:00 +00:00
|
|
|
patchelf \
|
|
|
|
--interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
|
|
|
|
$out/bin/staruml
|
|
|
|
wrapProgram $out/bin/staruml \
|
|
|
|
--prefix LD_LIBRARY_PATH : $out/lib:${LD_LIBRARY_PATH}
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "A sophisticated software modeler";
|
2020-11-30 08:33:03 +00:00
|
|
|
homepage = "https://staruml.io/";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.unfree;
|
2021-08-27 14:25:00 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
|
|
|
platforms = [ "x86_64-linux" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|