2017-01-07 11:50:02 +00:00
|
|
|
{ callPackage, fetchpatch, ... } @ args:
|
2015-02-25 01:50:06 +00:00
|
|
|
|
|
|
|
callPackage ./generic.nix (args // rec {
|
2021-01-09 05:41:01 +00:00
|
|
|
version = "2.4.0";
|
|
|
|
branch = "2.4";
|
2017-11-19 18:32:17 +00:00
|
|
|
revision = "v${version}";
|
2021-01-09 05:41:01 +00:00
|
|
|
sha256 = "143dvy5g6v6129lzvl0r8mrgva2fppkn0zl099qmi9yi9l9h7yyf";
|
2018-10-27 14:25:52 +01:00
|
|
|
|
2018-12-23 01:01:49 +00:00
|
|
|
extraFlags = [
|
|
|
|
"-DOPENJPEG_INSTALL_INCLUDE_DIR=${placeholder "dev"}/include/openjpeg-${branch}"
|
|
|
|
"-DOPENJPEG_INSTALL_PACKAGE_DIR=${placeholder "dev"}/lib/openjpeg-${branch}"
|
|
|
|
];
|
|
|
|
|
2018-10-27 14:25:52 +01:00
|
|
|
patches = [
|
2018-12-23 01:01:49 +00:00
|
|
|
./fix-cmake-config-includedir.patch
|
2019-07-06 09:40:29 +01:00
|
|
|
(fetchpatch {
|
2021-01-09 05:41:01 +00:00
|
|
|
url = "https://patch-diff.githubusercontent.com/raw/uclouvain/openjpeg/pull/1321.patch";
|
|
|
|
sha256 = "1cjpr76nf9g65nqkfnxnjzi3bv7ifbxpc74kxxibh58pzjlp6al8";
|
2020-03-12 17:37:41 +00:00
|
|
|
})
|
2018-10-27 14:25:52 +01:00
|
|
|
];
|
2015-02-25 01:50:06 +00:00
|
|
|
})
|