From 42888269418c7aac52e622e1c6818cf17aa2c4e0 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Thu, 16 Oct 2008 12:42:20 +0000 Subject: [PATCH] subversion-1.5.x: added new parameter "static" If static is set, subversion will be built with "--enable-all-static". The flag is currently unused (and default to 'false'), because I haven't figured out a good way to expose that functionality to the user. svn path=/nixpkgs/trunk/; revision=13083 --- .../version-management/subversion-1.5.x/default.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/version-management/subversion-1.5.x/default.nix b/pkgs/applications/version-management/subversion-1.5.x/default.nix index 5a0ef99bf12..97a7e536f88 100644 --- a/pkgs/applications/version-management/subversion-1.5.x/default.nix +++ b/pkgs/applications/version-management/subversion-1.5.x/default.nix @@ -8,6 +8,7 @@ , javahlBindings ? false , stdenv, fetchurl, apr, aprutil, neon, zlib , httpd ? null, expat, swig ? null, jdk ? null +, static ? false }: assert bdbSupport -> aprutil.bdbSupport; @@ -35,8 +36,8 @@ stdenv.mkDerivation rec { ; configureFlags = '' - --disable-static --disable-keychain + ${if static then "--disable-shared --enable-all-static" else "--disable-static"} ${if bdbSupport then "--with-berkeley-db" else "--without-berkeley-db"} ${if httpServer then "--with-apxs=${httpd}/bin/apxs" else "--without-apxs"} ${if pythonBindings || perlBindings then "--with-swig=${swig}" else "--without-swig"} @@ -56,7 +57,7 @@ stdenv.mkDerivation rec { make swig-py swig_pydir=$(toPythonPath $out)/libsvn swig_pydir_extra=$(toPythonPath $out)/svn make install-swig-py swig_pydir=$(toPythonPath $out)/libsvn swig_pydir_extra=$(toPythonPath $out)/svn fi - + if test "$perlBindings"; then make swig-pl-lib make install-swig-pl-lib