12 stdenv.mkDerivation rec {
13 pname = "protege-distribution";
17 url = "https://github.com/protegeproject/protege-distribution/releases/download/protege-${version}/Protege-${version}-platform-independent.zip";
18 sha256 = "08pr0rn76wcc9bczdf93nlshxbid4z4nyvmaz198hhlq96aqpc3i";
30 # Replace logic for searching the install directory with a static cd into $out
32 # Disable console logging, maintaining only file-based logging
33 ./disable-console-log.patch
37 # Resolve @out@ (introduced by "static-path.patch") to $out
38 substituteInPlace run.sh --subst-var-by out $out
49 # Wrap launch script to set $JAVA_HOME correctly
50 mv run.sh $out/bin/run-protege
51 wrapProgram $out/bin/run-protege --set JAVA_HOME ${jdk11.home}
53 # Generate and copy icons to where they can be found
54 icoFileToHiColorTheme app/Protege.ico protege $out
56 # Move everything else under protege/
58 mv {bundles,conf,plugins} $out/protege
66 desktopName = "Protege Desktop";
68 comment = "OWL2 ontology editor";
69 categories = [ "Development" ];
75 description = "The OWL2 ontology editor from Stanford, with third-party plugins included";
76 homepage = "https://protege.stanford.edu/";
77 downloadPage = "https://protege.stanford.edu/products.php#desktop-protege";
78 maintainers = with maintainers; [ nessdoor ];
79 license = with licenses; [ asl20 bsd2 epl10 lgpl3 ];
80 platforms = platforms.linux;
81 mainProgram = "run-protege";