Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / libraries / lerc / default.nix
blobf7bba5125a72b9270a77b9a0d14fe5d6e6bf11b9
1 { lib
2 , stdenv
3 , fetchFromGitHub
4 , fetchpatch
5 , cmake
6 }:
8 stdenv.mkDerivation rec {
9   pname = "lerc";
10   version = "4.0.0";
12   outputs = [ "out" "dev" ];
14   src = fetchFromGitHub {
15     owner = "esri";
16     repo = "lerc";
17     rev = "v${version}";
18     hash = "sha256-IHY9QtNYsxPz/ksxRMZGHleT+/bawfTYNVRSTAuYQ7Y=";
19   };
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   ];
30   nativeBuildInputs = [
31     cmake
32   ];
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   };