git.iko.soy/typeable/nixpkgs
on master help sign in
Update botan and fix the build
commitbc159cc8162ee8ea74248780046ce50aaf6443a1 authorMichael Raskin <7c6f434c@mail.ru> dateTue 6 Jan 2015, 18:47 (12 years ago) parent302f056
5 files changed+17−10
pkgs/development/libraries/botan/default.nix+2−2 pkgs/development/libraries/botan/default.upstream+2−2 pkgs/development/libraries/botan/generic.nix+7−2 pkgs/development/libraries/botan/unstable.nix+3−2 pkgs/development/libraries/botan/unstable.upstream+3−2
pkgs/development/libraries/botan/default.nix+2−2
@@ -2,6 +2,6 @@
22
33callPackage ./generic.nix (args // {
44 baseVersion = "1.10";
5− revision = "8";
6− sha256 = "182f316rbdd6jrqn92vjms3jyb9syn4ic0nzi3b7rfjbj3zdabxw";
5+ revision = "9";
6+ sha256 = "1wldp9py3qcdgswgxya83c03y6345a6cf3vwz0y41bl1l39jfza8";
77})
pkgs/development/libraries/botan/default.upstream+2−2
@@ -1,9 +1,9 @@
11url http://botan.randombit.net/download.html
2−version_link 'Botan-[0-9]+[.][0-9]*[02468]([.][0-9]+)?[.](tbz|tbz2|tar[.]bz2)$'
2+version_link 'Botan-[0-9]+[.][0-9]*[02468]([.][0-9]+)?[.](tgz|tbz|tbz2|tar[.]bz2)$'
33ensure_version
44do_overwrite(){
55 ensure_hash
6− set_var_value hash $CURRENT_HASH
6+ set_var_value sha256 $CURRENT_HASH
77 set_var_value baseVersion ${CURRENT_VERSION%.*}
88 set_var_value revision ${CURRENT_VERSION##*.}
99}
pkgs/development/libraries/botan/generic.nix+7−2
@@ -9,7 +9,7 @@ stdenv.mkDerivation rec {
99 version = "${baseVersion}.${revision}";
1010
1111 src = fetchurl {
12− name = "Botan-${version}.tar.bz2";
12+ name = "Botan-${version}.tgz";
1313 url = "http://files.randombit.net/botan/v${baseVersion}/Botan-${version}.tbz";
1414 inherit sha256;
1515 };
@@ -17,17 +17,22 @@ stdenv.mkDerivation rec {
1717 buildInputs = [ python bzip2 zlib gmp openssl boost ];
1818
1919 configurePhase = ''
20− python configure.py --prefix=$out --with-gnump --with-bzip2 --with-zlib --with-openssl --cc=$CC
20+ python configure.py --prefix=$out --with-gnump --with-bzip2 --with-zlib ${if openssl != null then "--with-openssl" else ""}
2121 '';
2222
2323 enableParallelBuilding = true;
2424
25+ preInstall = ''
26+ patchShebangs src/scripts
27+ '';
28+
2529 postInstall = ''
2630 cd "$out"/lib/pkgconfig
2731 ln -s botan-*.pc botan.pc || true
2832 '';
2933
3034 meta = with stdenv.lib; {
35+ inherit version;
3136 description = "Cryptographic algorithms library";
3237 maintainers = with maintainers; [ raskin ];
3338 platforms = platforms.unix;
pkgs/development/libraries/botan/unstable.nix+3−2
@@ -2,6 +2,7 @@
22
33callPackage ./generic.nix (args // {
44 baseVersion = "1.11";
5− revision = "9";
6− sha256 = "0jgx5va042gmr6nc91p5dd59wnfxlz19mz2nnyv74pvwwmizs09m";
5+ revision = "12";
6+ sha256 = "099hbimpqry96xzbv69x1wmqrybcnfn7yw8jj6ljvk6r8wk4qg85";
7+ openssl = null;
78})
pkgs/development/libraries/botan/unstable.upstream+3−2
@@ -1,9 +1,10 @@
11url http://botan.randombit.net/download.html
2−version_link 'Botan-[0-9]+[.][0-9]+([.][0-9]+)?[.](tbz|tbz2|tar[.]bz2)$'
2+version_link 'Botan-[0-9]+[.][0-9]+([.][0-9]+)?[.](tgz|tbz|tbz2|tar[.]bz2)$'
33ensure_version
4+attribute_name botanUnstable
45do_overwrite(){
56 ensure_hash
6− set_var_value hash $CURRENT_HASH
7+ set_var_value sha256 $CURRENT_HASH
78 set_var_value baseVersion ${CURRENT_VERSION%.*}
89 set_var_value revision ${CURRENT_VERSION##*.}
910}