mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 15:03:28 +00:00
JXplorer: init at 3.3.1.2
This commit is contained in:
parent
44f3015faf
commit
20060ea769
@ -190,6 +190,11 @@ in mkLicense lset) ({
|
||||
free = false;
|
||||
};
|
||||
|
||||
caossl = {
|
||||
fullName = "Computer Associates Open Source Licence Version 1.0";
|
||||
url = "http://jxplorer.org/licence.html";
|
||||
};
|
||||
|
||||
cal10 = {
|
||||
fullName = "Cryptographic Autonomy License version 1.0 (CAL-1.0)";
|
||||
url = "https://opensource.org/licenses/CAL-1.0";
|
||||
|
50
pkgs/applications/networking/jxplorer/default.nix
Normal file
50
pkgs/applications/networking/jxplorer/default.nix
Normal file
@ -0,0 +1,50 @@
|
||||
{ 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 = "A Java Ldap Browser";
|
||||
homepage = "https://sourceforge.net/projects/jxplorer/";
|
||||
license = lib.licenses.caossl;
|
||||
maintainers = with maintainers; [ benwbooth ];
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
@ -27800,6 +27800,8 @@ with pkgs;
|
||||
|
||||
jnetmap = callPackage ../applications/networking/jnetmap {};
|
||||
|
||||
jxplorer = callPackage ../applications/networking/jxplorer {};
|
||||
|
||||
join-desktop = callPackage ../applications/misc/join-desktop { };
|
||||
|
||||
json-plot = callPackage ../applications/graphics/json-plot {};
|
||||
|
Loading…
Reference in New Issue
Block a user