depot/third_party/nixpkgs/pkgs/applications/graphics/yed/default.nix
Default email 66604c92c1 Project import generated by Copybara.
GitOrigin-RevId: 32b8ed738096bafb4cdb7f70347a0f63f9f40151
2020-05-15 23:57:56 +02: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 ];
};
}