forked from mirrors/nixpkgs
46420bbaa3
treewide replacement of stdenv.mkDerivation rec { name = "*-${version}"; version = "*"; to pname
31 lines
857 B
Nix
31 lines
857 B
Nix
{ stdenv, fetchzip, makeWrapper, unzip, jre }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "yEd";
|
|
version = "3.19";
|
|
|
|
src = fetchzip {
|
|
url = "https://www.yworks.com/resources/yed/demo/${pname}-${version}.zip";
|
|
sha256 = "0l70pc7wl2ghfkjab9w2mbx7crwha7xwkrpmspsi5c6q56dw7s33";
|
|
};
|
|
|
|
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 = http://www.yworks.com/en/products/yfiles/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 ];
|
|
};
|
|
}
|