From ed3ebb7c2cae0a1f5ebc411ce553f5ce3a3c6e57 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Thu, 21 Jan 2010 21:42:17 +0000 Subject: * libjpeg updated to version 8. * libpng updated to 1.4.0. * For libjpegStatic, use a stdenv adapter to build a static library. svn path=/nixpkgs/branches/stdenv-updates/; revision=19605 --- pkgs/stdenv/adapters.nix | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'pkgs/stdenv/adapters.nix') diff --git a/pkgs/stdenv/adapters.nix b/pkgs/stdenv/adapters.nix index 5b37f9908c24..ac9e807801c6 100644 --- a/pkgs/stdenv/adapters.nix +++ b/pkgs/stdenv/adapters.nix @@ -107,6 +107,19 @@ rec { isStatic = true; } // {inherit fetchurl;}; + + # Return a modified stdenv that disables building shared libraries. + # However, executables will still be dynamically linked. + disableSharedLibraries = stdenv: stdenv // + { mkDerivation = args: stdenv.mkDerivation (args // { + dontDisableStatic = true; + configureFlags = + (if args ? configureFlags then args.configureFlags else "") + + " --disable-shared"; # brrr... + }); + } // {inherit fetchurl;}; + + # Return a modified stdenv that adds a cross compiler to the # builds. makeStdenvCross = stdenv: cross: binutilsCross: gccCross: stdenv // @@ -164,6 +177,7 @@ rec { }; } // { inherit cross; }; + /* Modify a stdenv so that the specified attributes are added to every derivation returned by its mkDerivation function. @@ -267,7 +281,6 @@ rec { /* Use the trace output to report all processed derivations with their license name. - */ traceDrvLicenses = stdenv: stdenv // { mkDerivation = args: @@ -289,6 +302,7 @@ rec { }; }; + /* Abort if the license predicate is not verified for a derivation declared with mkDerivation. -- cgit 1.4.1