2021-09-08 00:59:44 +01:00
|
|
|
{ callPackage, fetchpatch, ... } @ args:
|
2017-03-09 14:14:47 +00:00
|
|
|
|
|
|
|
callPackage ./generic.nix (args // {
|
2021-04-29 14:21:48 +01:00
|
|
|
baseVersion = "2.18";
|
2021-09-08 00:25:12 +01:00
|
|
|
revision = "1";
|
|
|
|
sha256 = "0adf53drhk1hlpfih0175c9081bqpclw6p2afn51cmx849ib9izq";
|
2017-03-09 14:14:47 +00:00
|
|
|
postPatch = ''
|
|
|
|
sed -e 's@lang_flags "@&--std=c++11 @' -i src/build-data/cc/{gcc,clang}.txt
|
|
|
|
'';
|
2021-09-08 00:59:44 +01:00
|
|
|
extraPatches = [
|
|
|
|
(fetchpatch {
|
|
|
|
name = "CVE-2021-40529.patch";
|
|
|
|
url = "https://github.com/randombit/botan/commit/9a23e4e3bc3966340531f2ff608fa9d33b5185a2.patch";
|
|
|
|
sha256 = "1ax1n2l9zh0hk35vkkywgkhzpdk76xb9apz2wm3h9kjvjs9acr3y";
|
|
|
|
# our source tarball doesn't include the tests
|
|
|
|
excludes = [ "src/tests/*" ];
|
|
|
|
})
|
|
|
|
];
|
2017-03-09 14:14:47 +00:00
|
|
|
})
|