@@ -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;