diff options
author | Sandro <sandro.jaeckel@gmail.com> | 2020-11-23 22:56:56 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-23 22:56:56 +0100 |
commit | edcd5cc798e3580c0f179c963e2ced02df22c44c (patch) | |
tree | 4aa139b20d0b9691ffd05d33861d5f51f17e4865 /pkgs/development | |
parent | 213cf1aaea732bc430851fd80403cf74f80c2707 (diff) | |
parent | 7ab97fdc443c20326b70b99a9a7eae49c27a58c1 (diff) |
Merge pull request #103253 from StephenWithPH/add-las-tools
Diffstat (limited to 'pkgs/development')
-rw-r--r-- | pkgs/development/libraries/LAStools/default.nix | 33 | ||||
-rw-r--r-- | pkgs/development/libraries/LAStools/drop-64-suffix.patch | 13 |
2 files changed, 46 insertions, 0 deletions
diff --git a/pkgs/development/libraries/LAStools/default.nix b/pkgs/development/libraries/LAStools/default.nix new file mode 100644 index 000000000000..c231361acb55 --- /dev/null +++ b/pkgs/development/libraries/LAStools/default.nix @@ -0,0 +1,33 @@ +{ stdenv, fetchFromGitHub, cmake }: + +stdenv.mkDerivation rec { + pname = "LAStools"; + version = "201003"; # LAStools makes release-ish commits with a message containing their version number as YYMMDD; these align with their website changelog + + src = fetchFromGitHub { + owner = "LAStools"; + repo = "LAStools"; + rev = "635b76b42cc4912762da31b92f875df5310e1714"; + sha256 = "0682ca3bp51lmfp46vsjnd1bqpn05g95pf4kclvjv1y8qivkxsaq"; + }; + + patches = [ + ./drop-64-suffix.patch # necessary to prevent '64' from being appended to the names of the executables + ]; + + hardeningDisable = [ + "format" + ]; + + nativeBuildInputs = [ + cmake + ]; + + meta = with stdenv.lib; { + description = "Software for rapid LiDAR processing"; + homepage = http://lastools.org/; + license = licenses.unfree; + maintainers = with maintainers; [ stephenwithph ]; + platforms = platforms.unix; + }; +} diff --git a/pkgs/development/libraries/LAStools/drop-64-suffix.patch b/pkgs/development/libraries/LAStools/drop-64-suffix.patch new file mode 100644 index 000000000000..2090baeb3b2b --- /dev/null +++ b/pkgs/development/libraries/LAStools/drop-64-suffix.patch @@ -0,0 +1,13 @@ +--- a/src/CMakeLists.txt ++++ b/src/CMakeLists.txt +@@ -32,6 +32,6 @@ endforeach(TARGET) + foreach(TARGET ${ALL_TARGETS}) + target_link_libraries(${TARGET} LASlib) + set_target_properties(${TARGET} PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/../bin64) +- set_target_properties(${TARGET} PROPERTIES OUTPUT_NAME ${TARGET}64) ++ set_target_properties(${TARGET} PROPERTIES OUTPUT_NAME ${TARGET}) + install(TARGETS ${TARGET} RUNTIME DESTINATION bin) + endforeach(TARGET) +-- +2.28.0 + |