github-backup: 0.48.0 -> 0.49.0 (#379003)
[NixPkgs.git] / pkgs / by-name / le / lerc / package.nix
blob08a7cb63afbfb42b0fa8146a6a7567fc33a1d477
2   lib,
3   stdenv,
4   fetchFromGitHub,
5   fetchpatch,
6   cmake,
7   testers,
8 }:
10 stdenv.mkDerivation (finalAttrs: {
11   pname = "lerc";
12   version = "4.0.0";
14   outputs = [
15     "out"
16     "dev"
17   ];
19   src = fetchFromGitHub {
20     owner = "esri";
21     repo = "lerc";
22     rev = "v${finalAttrs.version}";
23     hash = "sha256-IHY9QtNYsxPz/ksxRMZGHleT+/bawfTYNVRSTAuYQ7Y=";
24   };
26   patches = [
27     # https://github.com/Esri/lerc/pull/227
28     (fetchpatch {
29       name = "use-cmake-install-full-dir.patch";
30       url = "https://github.com/Esri/lerc/commit/5462ca7f7dfb38c65e16f5abfd96873af177a0f8.patch";
31       hash = "sha256-qaNR3QwLe0AB6vu1nXOh9KhlPdWM3DmgCJj4d0VdOUk=";
32     })
33   ];
35   nativeBuildInputs = [
36     cmake
37   ];
39   passthru.tests.pkg-config = testers.hasPkgConfigModules {
40     package = finalAttrs.finalPackage;
41   };
43   meta = {
44     description = "C++ library for Limited Error Raster Compression";
45     homepage = "https://github.com/esri/lerc";
46     license = lib.licenses.asl20;
47     maintainers = with lib.maintainers; [ dotlambda ];
48     pkgConfigModules = [ "Lerc" ];
49   };