nixpkgs/pkgs/applications/graphics/yed/default.nix
2020-05-11 03:04:49 +00:00

30 lines
849 B
Nix

{ stdenv, fetchzip, makeWrapper, unzip, jre }:
stdenv.mkDerivation rec {
pname = "yEd";
version = "3.20";
src = fetchzip {
url = "https://www.yworks.com/resources/yed/demo/${pname}-${version}.zip";
sha256 = "08j8lpn2nd41gavgrj03rlrxl04wcamq1y02f1x1569ykbhycb3m";
};
nativeBuildInputs = [ makeWrapper unzip ];
installPhase = ''
mkdir -p $out/yed
cp -r * $out/yed
mkdir -p $out/bin
makeWrapper ${jre}/bin/java $out/bin/yed \
--add-flags "-jar $out/yed/yed.jar --"
'';
meta = with stdenv.lib; {
license = licenses.unfree;
homepage = "https://www.yworks.com/products/yed";
description = "A powerful desktop application that can be used to quickly and effectively generate high-quality diagrams";
platforms = jre.meta.platforms;
maintainers = with maintainers; [ abbradar ];
};
}