at 23.11-beta 40 lines 884 B view raw
1{ lib 2, stdenv 3, fetchFromGitHub 4, fetchpatch 5, cmake 6}: 7 8stdenv.mkDerivation rec { 9 pname = "lerc"; 10 version = "4.0.0"; 11 12 outputs = [ "out" "dev" ]; 13 14 src = fetchFromGitHub { 15 owner = "esri"; 16 repo = "lerc"; 17 rev = "v${version}"; 18 hash = "sha256-IHY9QtNYsxPz/ksxRMZGHleT+/bawfTYNVRSTAuYQ7Y="; 19 }; 20 21 patches = [ 22 # https://github.com/Esri/lerc/pull/227 23 (fetchpatch { 24 name = "use-cmake-install-full-dir.patch"; 25 url = "https://github.com/Esri/lerc/commit/5462ca7f7dfb38c65e16f5abfd96873af177a0f8.patch"; 26 hash = "sha256-qaNR3QwLe0AB6vu1nXOh9KhlPdWM3DmgCJj4d0VdOUk="; 27 }) 28 ]; 29 30 nativeBuildInputs = [ 31 cmake 32 ]; 33 34 meta = { 35 description = "C++ library for Limited Error Raster Compression"; 36 homepage = "https://github.com/esri/lerc"; 37 license = lib.licenses.asl20; 38 maintainers = with lib.maintainers; [ dotlambda ]; 39 }; 40}