summary refs log tree commit diff
path: root/pkgs/development/libraries/botan/generic.nix
diff options
context:
space:
mode:
authorMichael Raskin <7c6f434c@mail.ru>2015-01-06 18:47:02 +0300
committerMichael Raskin <7c6f434c@mail.ru>2015-01-06 18:47:02 +0300
commitbc159cc8162ee8ea74248780046ce50aaf6443a1 (patch)
tree0c844bc7323cc11af24342c4ff0873301da05577 /pkgs/development/libraries/botan/generic.nix
parent302f056f917d294df0b32f5fe5dd1a0ad96238f7 (diff)
downloadnixpkgs-bc159cc8162ee8ea74248780046ce50aaf6443a1.tar
nixpkgs-bc159cc8162ee8ea74248780046ce50aaf6443a1.tar.gz
nixpkgs-bc159cc8162ee8ea74248780046ce50aaf6443a1.tar.bz2
nixpkgs-bc159cc8162ee8ea74248780046ce50aaf6443a1.tar.lz
nixpkgs-bc159cc8162ee8ea74248780046ce50aaf6443a1.tar.xz
nixpkgs-bc159cc8162ee8ea74248780046ce50aaf6443a1.tar.zst
nixpkgs-bc159cc8162ee8ea74248780046ce50aaf6443a1.zip
Update botan and fix the build
Diffstat (limited to 'pkgs/development/libraries/botan/generic.nix')
-rw-r--r--pkgs/development/libraries/botan/generic.nix9
1 files changed, 7 insertions, 2 deletions
diff --git a/pkgs/development/libraries/botan/generic.nix b/pkgs/development/libraries/botan/generic.nix
index b4bd4e05841..791731ec856 100644
--- a/pkgs/development/libraries/botan/generic.nix
+++ b/pkgs/development/libraries/botan/generic.nix
@@ -9,7 +9,7 @@ stdenv.mkDerivation rec {
   version = "${baseVersion}.${revision}";
 
   src = fetchurl {
-    name = "Botan-${version}.tar.bz2";
+    name = "Botan-${version}.tgz";
     url = "http://files.randombit.net/botan/v${baseVersion}/Botan-${version}.tbz";
     inherit sha256;
   };
@@ -17,17 +17,22 @@ stdenv.mkDerivation rec {
   buildInputs = [ python bzip2 zlib gmp openssl boost ];
 
   configurePhase = ''
-    python configure.py --prefix=$out --with-gnump --with-bzip2 --with-zlib --with-openssl --cc=$CC
+    python configure.py --prefix=$out --with-gnump --with-bzip2 --with-zlib ${if openssl != null then "--with-openssl" else ""}
   '';
 
   enableParallelBuilding = true;
 
+  preInstall = ''
+    patchShebangs src/scripts
+  '';
+
   postInstall = ''
     cd "$out"/lib/pkgconfig
     ln -s botan-*.pc botan.pc || true
   '';
 
   meta = with stdenv.lib; {
+    inherit version;
     description = "Cryptographic algorithms library";
     maintainers = with maintainers; [ raskin ];
     platforms = platforms.unix;