@@ -9,7 +9,7 @@ stdenv.mkDerivation rec {
9 version = "${baseVersion}.${revision}";
9 version = "${baseVersion}.${revision}";
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;
@@ -17,17 +17,22 @@ stdenv.mkDerivation rec {
17 buildInputs = [ python bzip2 zlib gmp openssl boost ];
17 buildInputs = [ python bzip2 zlib gmp openssl boost ];
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 ""}
23 enableParallelBuilding = true;
23 enableParallelBuilding = true;
26+ patchShebangs src/scripts
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
30 meta = with stdenv.lib; {
34 meta = with stdenv.lib; {
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;