git.iko.soy/typeable/nixpkgs
on master help sign in
Update botan and fix the build
bc159ccMichael Raskin
pkgs/development/libraries/botan/default.nix+2−2
@@ -2,6 +2,6 @@
2
2
3callPackage ./generic.nix (args // {
3callPackage ./generic.nix (args // {
4 baseVersion = "1.10";
4 baseVersion = "1.10";
5− revision = "8";
5+ revision = "9";
6− sha256 = "182f316rbdd6jrqn92vjms3jyb9syn4ic0nzi3b7rfjbj3zdabxw";
6+ sha256 = "1wldp9py3qcdgswgxya83c03y6345a6cf3vwz0y41bl1l39jfza8";
7})
7})
pkgs/development/libraries/botan/default.upstream+2−2
@@ -1,9 +1,9 @@
1url http://botan.randombit.net/download.html
1url 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)$'
3ensure_version
3ensure_version
4do_overwrite(){
4do_overwrite(){
5 ensure_hash
5 ensure_hash
6− set_var_value hash $CURRENT_HASH
6+ set_var_value sha256 $CURRENT_HASH
7 set_var_value baseVersion ${CURRENT_VERSION%.*}
7 set_var_value baseVersion ${CURRENT_VERSION%.*}
8 set_var_value revision ${CURRENT_VERSION##*.}
8 set_var_value revision ${CURRENT_VERSION##*.}
9}
9}
pkgs/development/libraries/botan/generic.nix+7−2
@@ -9,7 +9,7 @@ stdenv.mkDerivation rec {
9 version = "${baseVersion}.${revision}";
9 version = "${baseVersion}.${revision}";
10
10
11 src = fetchurl {
11 src = fetchurl {
12− name = "Botan-${version}.tar.bz2";
12+ name = "Botan-${version}.tgz";
13 url = "http://files.randombit.net/botan/v${baseVersion}/Botan-${version}.tbz";
13 url = "http://files.randombit.net/botan/v${baseVersion}/Botan-${version}.tbz";
14 inherit sha256;
14 inherit sha256;
15 };
15 };
@@ -17,17 +17,22 @@ stdenv.mkDerivation rec {
17 buildInputs = [ python bzip2 zlib gmp openssl boost ];
17 buildInputs = [ python bzip2 zlib gmp openssl boost ];
18
18
19 configurePhase = ''
19 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 ""}
21 '';
21 '';
22
22
23 enableParallelBuilding = true;
23 enableParallelBuilding = true;
24
24
25+ preInstall = ''
26+ patchShebangs src/scripts
27+ '';
28+
25 postInstall = ''
29 postInstall = ''
26 cd "$out"/lib/pkgconfig
30 cd "$out"/lib/pkgconfig
27 ln -s botan-*.pc botan.pc || true
31 ln -s botan-*.pc botan.pc || true
28 '';
32 '';
29
33
30 meta = with stdenv.lib; {
34 meta = with stdenv.lib; {
35+ inherit version;
31 description = "Cryptographic algorithms library";
36 description = "Cryptographic algorithms library";
32 maintainers = with maintainers; [ raskin ];
37 maintainers = with maintainers; [ raskin ];
33 platforms = platforms.unix;
38 platforms = platforms.unix;
pkgs/development/libraries/botan/unstable.nix+3−2
@@ -2,6 +2,7 @@
2
2
3callPackage ./generic.nix (args // {
3callPackage ./generic.nix (args // {
4 baseVersion = "1.11";
4 baseVersion = "1.11";
5− revision = "9";
5+ revision = "12";
6− sha256 = "0jgx5va042gmr6nc91p5dd59wnfxlz19mz2nnyv74pvwwmizs09m";
6+ sha256 = "099hbimpqry96xzbv69x1wmqrybcnfn7yw8jj6ljvk6r8wk4qg85";
7+ openssl = null;
7})
8})
pkgs/development/libraries/botan/unstable.upstream+3−2
@@ -1,9 +1,10 @@
1url http://botan.randombit.net/download.html
1url 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)$'
3ensure_version
3ensure_version
4+attribute_name botanUnstable
4do_overwrite(){
5do_overwrite(){
5 ensure_hash
6 ensure_hash
6− set_var_value hash $CURRENT_HASH
7+ set_var_value sha256 $CURRENT_HASH
7 set_var_value baseVersion ${CURRENT_VERSION%.*}
8 set_var_value baseVersion ${CURRENT_VERSION%.*}
8 set_var_value revision ${CURRENT_VERSION##*.}
9 set_var_value revision ${CURRENT_VERSION##*.}
9}
10}