nixpkgs/pkgs/by-name/le/lerc/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

47 lines
1.0 KiB
Nix
Raw Normal View History

2022-06-28 03:00:55 +00:00
{ lib
, stdenv
, fetchFromGitHub
, fetchpatch
2022-06-28 03:00:55 +00:00
, cmake
, testers
2022-06-28 03:00:55 +00:00
}:
stdenv.mkDerivation (finalAttrs: {
2022-06-28 03:00:55 +00:00
pname = "lerc";
version = "4.0.0";
2022-06-28 03:00:55 +00:00
outputs = [ "out" "dev" ];
src = fetchFromGitHub {
owner = "esri";
repo = "lerc";
rev = "v${finalAttrs.version}";
hash = "sha256-IHY9QtNYsxPz/ksxRMZGHleT+/bawfTYNVRSTAuYQ7Y=";
2022-06-28 03:00:55 +00:00
};
patches = [
# https://github.com/Esri/lerc/pull/227
(fetchpatch {
name = "use-cmake-install-full-dir.patch";
url = "https://github.com/Esri/lerc/commit/5462ca7f7dfb38c65e16f5abfd96873af177a0f8.patch";
hash = "sha256-qaNR3QwLe0AB6vu1nXOh9KhlPdWM3DmgCJj4d0VdOUk=";
})
];
2022-06-28 03:00:55 +00:00
nativeBuildInputs = [
cmake
];
passthru.tests.pkg-config = testers.hasPkgConfigModules {
package = finalAttrs.finalPackage;
};
2022-06-28 03:00:55 +00:00
meta = {
description = "C++ library for Limited Error Raster Compression";
homepage = "https://github.com/esri/lerc";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ dotlambda ];
pkgConfigModules = [ "Lerc" ];
2022-06-28 03:00:55 +00:00
};
})