nixpkgs/pkgs/applications/networking/jxplorer/default.nix
Alexis Hildebrandt 755b915a15 treewide: Remove indefinite article from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
2024-06-09 23:07:45 +02:00

52 lines
1.4 KiB
Nix

{ lib, stdenv, fetchurl, makeDesktopItem, ant, jdk8, copyDesktopItems, makeWrapper }:
stdenv.mkDerivation rec {
pname = "jxplorer";
version = "3.3.1.2";
src = fetchurl {
url = "https://github.com/pegacat/jxplorer/releases/download/v${version}/jxplorer-${version}-project.tar.bz2";
hash = "sha256-/lWkavH51OqNFSLpgT+4WcQcfW3WvnnOkB03jB7bE/s=";
};
nativeBuildInputs = [
copyDesktopItems
makeWrapper
];
desktopItems = [
(makeDesktopItem {
name = "JXplorer";
exec = "jxplorer";
comment = "A Java Ldap Browser";
desktopName = "JXplorer";
genericName = "Java Ldap Browser";
icon = "jxplorer";
})
];
installPhase = ''
runHook preInstall
install -d "$out/opt/jxplorer" "$out/bin" "$out/share/pixmaps"
cp -r ./. "$out/opt/jxplorer"
install -Dm644 images/JX128.png "$out/share/pixmaps/jxplorer.png"
runHook postInstall
'';
postFixup = ''
chmod +x $out/opt/jxplorer/jxplorer.sh
makeWrapper $out/opt/jxplorer/jxplorer.sh $out/bin/jxplorer \
--chdir $out/opt/jxplorer \
--set JAVA_HOME ${jdk8}
'';
meta = with lib; {
description = "Java Ldap Browser";
homepage = "https://sourceforge.net/projects/jxplorer/";
license = lib.licenses.caossl;
maintainers = with maintainers; [ benwbooth ];
platforms = platforms.linux;
mainProgram = "jxplorer";
};
}