diff --git a/pkgs/development/libraries/lerc/default.nix b/pkgs/development/libraries/lerc/default.nix index 99e18a76bf60..f7bba5125a72 100644 --- a/pkgs/development/libraries/lerc/default.nix +++ b/pkgs/development/libraries/lerc/default.nix @@ -1,12 +1,13 @@ { lib , stdenv , fetchFromGitHub +, fetchpatch , cmake }: stdenv.mkDerivation rec { pname = "lerc"; - version = "3.0"; + version = "4.0.0"; outputs = [ "out" "dev" ]; @@ -14,9 +15,18 @@ stdenv.mkDerivation rec { owner = "esri"; repo = "lerc"; rev = "v${version}"; - hash = "sha256-QO5+ouQy5nOcAgvxMeBDoSBP+G3ClDjXipnkuSIDcP0="; + hash = "sha256-IHY9QtNYsxPz/ksxRMZGHleT+/bawfTYNVRSTAuYQ7Y="; }; + 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="; + }) + ]; + nativeBuildInputs = [ cmake ];