nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 41 lines 898 B view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 cmake, 6}: 7 8stdenv.mkDerivation (finalAttrs: { 9 pname = "LAStools"; 10 version = "2.0.4"; 11 12 src = fetchFromGitHub { 13 owner = "LAStools"; 14 repo = "LAStools"; 15 tag = "v${finalAttrs.version}"; 16 hash = "sha256-ow7zcvkenJ2j+tj2TxuEtK0dQEwzUtJ9f0wzt5/qimM="; 17 }; 18 19 patches = [ 20 ./drop-64-suffix.patch # necessary to prevent '64' from being appended to the names of the executables 21 ]; 22 23 hardeningDisable = [ 24 "format" 25 ]; 26 27 env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.hostPlatform.isAarch64 "-Wno-narrowing"; 28 29 nativeBuildInputs = [ 30 cmake 31 ]; 32 33 meta = { 34 description = "Software for rapid LiDAR processing"; 35 homepage = "http://lastools.org/"; 36 license = lib.licenses.unfree; 37 maintainers = with lib.maintainers; [ stephenwithph ]; 38 teams = [ lib.teams.geospatial ]; 39 platforms = lib.platforms.unix; 40 }; 41})