nixpkgs/pkgs/applications/graphics/yed/default.nix
volth 46420bbaa3 treewide: name -> pname (easy cases) (#66585)
treewide replacement of

stdenv.mkDerivation rec {
  name = "*-${version}";
  version = "*";

to pname
2019-08-15 13:41:18 +01:00

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 ];
};
}