botan2: init at 2.0.1

This commit is contained in:
Michael Raskin 2017-03-09 15:14:47 +01:00
parent c3939cbcf5
commit 6962e84b8d
3 changed files with 21 additions and 0 deletions

View file

@ -0,0 +1,10 @@
{ callPackage, ... } @ args:
callPackage ./generic.nix (args // {
baseVersion = "2.0";
revision = "1";
sha256 = "02sf6qghgs1lmprx715dnyll1rmqcjb9q6s50n20li8idlqysf51";
postPatch = ''
sed -e 's@lang_flags "@&--std=c++11 @' -i src/build-data/cc/{gcc,clang}.txt
'';
})

View file

@ -0,0 +1,10 @@
url http://botan.randombit.net/download.html
version_link 'Botan-[0-9]+[.][0-9]*[02468]([.][0-9]+)?[.](tgz|tbz|tbz2|tar[.]bz2)$'
ensure_version
attribute_name botan2
do_overwrite(){
ensure_hash
set_var_value sha256 $CURRENT_HASH
set_var_value baseVersion ${CURRENT_VERSION%.*}
set_var_value revision ${CURRENT_VERSION##*.}
}

View file

@ -7001,6 +7001,7 @@ with pkgs;
boost_process = callPackage ../development/libraries/boost-process { };
botan = callPackage ../development/libraries/botan { };
botan2 = callPackage ../development/libraries/botan/2.0.nix { };
botanUnstable = callPackage ../development/libraries/botan/unstable.nix { };
box2d = callPackage ../development/libraries/box2d { };