diff options
author | Sandro <sandro.jaeckel@gmail.com> | 2023-07-13 22:08:44 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-13 22:08:44 +0200 |
commit | 4cbe570fc895f644bc87a9303e8911556445f5b4 (patch) | |
tree | 2e152960be769480c3538a9159dcde22a671d4e9 /pkgs/applications/gis | |
parent | 0b96c283a42fdd806e95009c1ca13921fb2e4791 (diff) | |
parent | 35ec55c81382ed0744782ec0b09d1908fd281b17 (diff) | |
download | nixpkgs-4cbe570fc895f644bc87a9303e8911556445f5b4.tar nixpkgs-4cbe570fc895f644bc87a9303e8911556445f5b4.tar.gz nixpkgs-4cbe570fc895f644bc87a9303e8911556445f5b4.tar.bz2 nixpkgs-4cbe570fc895f644bc87a9303e8911556445f5b4.tar.lz nixpkgs-4cbe570fc895f644bc87a9303e8911556445f5b4.tar.xz nixpkgs-4cbe570fc895f644bc87a9303e8911556445f5b4.tar.zst nixpkgs-4cbe570fc895f644bc87a9303e8911556445f5b4.zip |
Merge pull request #239739 from goatchurchprime/gtch/tunnelx
tunnelx: init at 2023-07-nix
Diffstat (limited to 'pkgs/applications/gis')
-rw-r--r-- | pkgs/applications/gis/tunnelx/default.nix | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/pkgs/applications/gis/tunnelx/default.nix b/pkgs/applications/gis/tunnelx/default.nix new file mode 100644 index 00000000000..821900a9d46 --- /dev/null +++ b/pkgs/applications/gis/tunnelx/default.nix @@ -0,0 +1,52 @@ +{ lib +, stdenv +, fetchFromGitHub +, jdk +, jre +, survex +, makeWrapper +}: + +stdenv.mkDerivation (finalAttrs: { + pname = "tunnelx"; + version = "2023-07-nix"; + + src = fetchFromGitHub { + owner = "CaveSurveying"; + repo = "tunnelx"; + rev = "v${finalAttrs.version}"; + hash = "sha256-H6lHqc9on/pv/KihNcaHPwbWf4JXRkeRqNoYq6yVKqM="; + }; + + nativeBuildInputs = [ + makeWrapper + ]; + + buildInputs = [ + jdk + ]; + + runtimeInputs = [ + survex + ]; + + buildPhase = '' + javac -d . src/*.java + ''; + + installPhase = '' + mkdir -p $out/bin $out/java + cp -r symbols Tunnel tutorials $out/java + makeWrapper ${jre}/bin/java $out/bin/tunnelx \ + --add-flags "-cp $out/java Tunnel.MainBox" \ + --set SURVEX_EXECUTABLE_DIR ${survex}/bin/ \ + --set TUNNEL_USER_DIR $out/java/ + ''; + + meta = with lib; { + description = "A program for drawing cave surveys in 2D"; + homepage = "https://github.com/CaveSurveying/tunnelx/"; + license = licenses.gpl3; + maintainers = with maintainers; [ goatchurchprime ]; + }; +}) |