uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
33
pkgs/development/libraries/LAStools/default.nix
Normal file
33
pkgs/development/libraries/LAStools/default.nix
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
{ lib, stdenv, fetchFromGitHub, cmake }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "LAStools";
|
||||
version = "2.0.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "LAStools";
|
||||
repo = "LAStools";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-Mxic/zLk/qkB/rSlvkLZPgtNscrTrzSzrxiqXAMeDVU=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
./drop-64-suffix.patch # necessary to prevent '64' from being appended to the names of the executables
|
||||
];
|
||||
|
||||
hardeningDisable = [
|
||||
"format"
|
||||
];
|
||||
|
||||
nativeBuildInputs = [
|
||||
cmake
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Software for rapid LiDAR processing";
|
||||
homepage = "http://lastools.org/";
|
||||
license = licenses.unfree;
|
||||
maintainers = with maintainers; [ stephenwithph ];
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
}
|
||||
13
pkgs/development/libraries/LAStools/drop-64-suffix.patch
Normal file
13
pkgs/development/libraries/LAStools/drop-64-suffix.patch
Normal file
|
|
@ -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
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue