nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 stdenv,
4 fetchzip,
5 makeWrapper,
6 unzip,
7 jre,
8 wrapGAppsHook3,
9}:
10
11stdenv.mkDerivation {
12 pname = "yEd";
13 version = "3.25.1";
14
15 # nixpkgs-update: no auto update
16 src = fetchzip {
17 # to update: archive https://www.yworks.com/resources/yed/demo/yEd-${version}.zip
18 url = "https://web.archive.org/web/20250322075239/https://www.yworks.com/resources/yed/demo/yEd-3.25.1.zip";
19 sha256 = "sha256-CDciM2IW+nocbFMVmTXMWh2eYcDAMZ+lxsg/Rb7KRgo=";
20 };
21
22 nativeBuildInputs = [
23 makeWrapper
24 unzip
25 wrapGAppsHook3
26 ];
27 # For wrapGAppsHook3 setup hook
28 buildInputs = [ (jre.gtk3 or null) ];
29
30 dontConfigure = true;
31 dontBuild = true;
32 dontInstall = true;
33
34 preFixup = ''
35 mkdir -p $out/yed
36 cp -r * $out/yed
37 mkdir -p $out/bin
38
39 makeWrapperArgs+=("''${gappsWrapperArgs[@]}")
40 makeWrapper ${jre}/bin/java $out/bin/yed \
41 ''${makeWrapperArgs[@]} \
42 --add-flags "-jar $out/yed/yed.jar --"
43 '';
44 dontWrapGApps = true;
45
46 meta = {
47 license = lib.licenses.unfree;
48 sourceProvenance = with lib.sourceTypes; [ binaryBytecode ];
49 homepage = "https://www.yworks.com/products/yed";
50 description = "Powerful desktop application that can be used to quickly and effectively generate high-quality diagrams";
51 platforms = jre.meta.platforms;
52 maintainers = [ ];
53 mainProgram = "yed";
54 };
55}