From d924bbb77524c9ecc58a41baa7e8d8679d9c0dfb Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 9 Feb 2011 15:27:34 +0000 Subject: [PATCH] * openssl: per Nixpkgs convention, don't install static libraries when building dynamic libraries. svn path=/nixpkgs/branches/x-updates/; revision=25856 --- pkgs/development/libraries/openssl/default.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pkgs/development/libraries/openssl/default.nix b/pkgs/development/libraries/openssl/default.nix index 616cab5b4931..4897d08574d1 100644 --- a/pkgs/development/libraries/openssl/default.nix +++ b/pkgs/development/libraries/openssl/default.nix @@ -25,6 +25,15 @@ stdenv.mkDerivation rec { configureFlags = "shared --libdir=lib"; + postInstall = + '' + # If we're building dynamic libraries, then don't install static + # libraries. + if [ -n "$(echo $out/lib/*.so)" ]; then + rm $out/lib/*.a + fi + ''; # */ + crossAttrs = { preConfigure='' # It's configure does not like --build or --host