nixpkgs/pkgs/applications/graphics/yed/default.nix
Nikolay Amiantov c6c2e253a6 yed: 3.14.2 -> 3.14.3, mark as not redistributable
Their license explicitly prohibits distribution and it's unclear whether they allow to download their binary automatically. I've asked to clarify their terms; this may be temporary.
2015-08-22 13:54:11 +03:00

34 lines
1 KiB
Nix

{ stdenv, fetchurl, requireFile, makeWrapper, unzip, jre }:
stdenv.mkDerivation rec {
name = "yEd-3.14.3";
#src = fetchurl {
# url = "http://www.yworks.com/products/yed/demo/${name}.zip";
# sha256 = "0xgazknbz82sgk65hxmvbycl1vd25z80a7jgwjgw7syicrgmplcl";
#};
src = requireFile {
name = "${name}.zip";
url = "https://www.yworks.com/en/products_download.php?file=${name}.zip";
sha256 = "0xgazknbz82sgk65hxmvbycl1vd25z80a7jgwjgw7syicrgmplcl";
};
nativeBuildInputs = [ unzip makeWrapper ];
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 ];
};
}