1 { lib, stdenv, fetchurl, makeDesktopItem, jdk8, copyDesktopItems, makeWrapper }:
3 stdenv.mkDerivation rec {
8 url = "https://github.com/pegacat/jxplorer/releases/download/v${version}/jxplorer-${version}-project.tar.bz2";
9 hash = "sha256-/lWkavH51OqNFSLpgT+4WcQcfW3WvnnOkB03jB7bE/s=";
21 comment = "A Java Ldap Browser";
22 desktopName = "JXplorer";
23 genericName = "Java Ldap Browser";
30 install -d "$out/opt/jxplorer" "$out/bin" "$out/share/pixmaps"
31 cp -r ./. "$out/opt/jxplorer"
32 install -Dm644 images/JX128.png "$out/share/pixmaps/jxplorer.png"
37 chmod +x $out/opt/jxplorer/jxplorer.sh
38 makeWrapper $out/opt/jxplorer/jxplorer.sh $out/bin/jxplorer \
39 --chdir $out/opt/jxplorer \
40 --set JAVA_HOME ${jdk8}
44 description = "Java Ldap Browser";
45 homepage = "https://sourceforge.net/projects/jxplorer/";
46 license = lib.licenses.caossl;
47 maintainers = with maintainers; [ benwbooth ];
48 platforms = platforms.linux;
49 mainProgram = "jxplorer";