git.iko.soy/typeable/nixpkgs
on master help sign in
eccodes: build with openjpeg

It did not look for openjpeg-2.3 and was built without openjpeg support.

commit62ce2bb42a3c92c99f366eb35bc686abb7273996 authorOrivej Desh <orivej@gmx.fr> dateThu 25 Oct 2018, 17:44 (8 years ago) parentd09961c
1 file changed+5−1
pkgs/development/libraries/eccodes/default.nix+5−1
pkgs/development/libraries/eccodes/default.nix+5−1
@@ -3,7 +3,7 @@
33, enablePython ? false, pythonPackages
44, enablePosixThreads ? false
55, enableOpenMPThreads ? false}:
6−with stdenv.lib;
6+with stdenv.lib;
77stdenv.mkDerivation rec {
88 name = "eccodes-${version}";
99 version = "2.9.0";
@@ -13,6 +13,10 @@ stdenv.mkDerivation rec {
1313 sha256 = "1mh9zkfb5dj3j8fk3gdhz2bp6z13nik5pmynpf5l6qy3lhgyn17z";
1414 };
1515
16+ postPatch = ''
17+ substituteInPlace cmake/FindOpenJPEG.cmake --replace openjpeg-2.1 ${openjpeg.incDir}
18+ '';
19+
1620 nativeBuildInputs = [ cmake ];
1721
1822 buildInputs = [ netcdf