diff options
author | William A. Kennington III <william@wkennington.com> | 2014-09-30 12:32:44 -0700 |
---|---|---|
committer | William A. Kennington III <william@wkennington.com> | 2014-11-02 17:22:27 -0800 |
commit | 529bd816c5a3ac5fa5c9a833bef3d89d3f3ddf54 (patch) | |
tree | 08c4f5188b1c900ed5dc9d7cfa4401b02c200221 /pkgs/development/libraries/boost | |
parent | 9b9f716df2d793f99eb47868af65559488cabc1d (diff) | |
download | nixpkgs-529bd816c5a3ac5fa5c9a833bef3d89d3f3ddf54.tar nixpkgs-529bd816c5a3ac5fa5c9a833bef3d89d3f3ddf54.tar.gz nixpkgs-529bd816c5a3ac5fa5c9a833bef3d89d3f3ddf54.tar.bz2 nixpkgs-529bd816c5a3ac5fa5c9a833bef3d89d3f3ddf54.tar.lz nixpkgs-529bd816c5a3ac5fa5c9a833bef3d89d3f3ddf54.tar.xz nixpkgs-529bd816c5a3ac5fa5c9a833bef3d89d3f3ddf54.tar.zst nixpkgs-529bd816c5a3ac5fa5c9a833bef3d89d3f3ddf54.zip |
boost: Change header output name
Diffstat (limited to 'pkgs/development/libraries/boost')
-rw-r--r-- | pkgs/development/libraries/boost/1.56.nix | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/pkgs/development/libraries/boost/1.56.nix b/pkgs/development/libraries/boost/1.56.nix index 212b6ca0dee..18c86921a9d 100644 --- a/pkgs/development/libraries/boost/1.56.nix +++ b/pkgs/development/libraries/boost/1.56.nix @@ -46,7 +46,7 @@ let withToolset = stdenv.lib.optionalString (toolset != null) "--with-toolset=${toolset}"; genericB2Flags = [ - "--prefix=$out" + "--prefix=$dev" "--libdir=$lib/lib" "-j$NIX_BUILD_CORES" "--layout=${layout}" @@ -78,11 +78,16 @@ let installer = b2Args: '' # boostbook is needed by some applications - mkdir -p $out/share/boostbook - cp -a tools/boostbook/{xsl,dtd} $out/share/boostbook/ + mkdir -p $dev/share/boostbook + cp -a tools/boostbook/{xsl,dtd} $dev/share/boostbook/ # Let boost install everything else ./b2 ${b2Args} install + + # Create a derivation which encompasses everything, making buildInputs nicer + mkdir -p $out/nix-support + echo $dev >> $out/nix-support/propagated-build-inputs + echo $lib >> $out/nix-support/propagated-build-inputs ''; commonConfigureFlags = [ @@ -124,7 +129,7 @@ stdenv.mkDerivation { installPhase = installer nativeB2Args; - outputs = [ "out" "lib" ]; + outputs = [ "out" "dev" "lib" ]; crossAttrs = rec { buildInputs = [ expat.crossDrv zlib.crossDrv bzip2.crossDrv ]; @@ -134,7 +139,7 @@ stdenv.mkDerivation { # We want to substitute the contents of configureFlags, removing thus the # usual --build and --host added on cross building. preConfigure = '' - export configureFlags="--prefix=$out --without-icu ${concatStringsSep " " commonConfigureFlags}" + export configureFlags="--prefix=$dev --without-icu ${concatStringsSep " " commonConfigureFlags}" set -x cat << EOF > user-config.jam using gcc : cross : $crossConfig-g++ ; |