forked from mirrors/nixpkgs
build nix head successfully
This commit is contained in:
parent
6f949b2e87
commit
fa9b1f9cda
|
@ -1,9 +1,5 @@
|
|||
{ stdenv, fetchurl, perl, groff, llvm, cmake, libxml2, python }:
|
||||
|
||||
# be sure not to rebuild clang on darwin; some packages request it specifically
|
||||
# we need to fix those
|
||||
assert stdenv.isDarwin -> stdenv.gcc.nativeTools;
|
||||
|
||||
let
|
||||
version = "3.3";
|
||||
gccReal = if (stdenv.gcc.gcc or null) == null then stdenv.gcc else stdenv.gcc.gcc;
|
||||
|
|
|
@ -1,5 +1,9 @@
|
|||
{ stdenv, fetch, cmake, libxml2, libedit, llvm, version, clang-tools-extra_src }:
|
||||
|
||||
# be sure not to rebuild clang on darwin; some packages request it specifically
|
||||
# we need to fix those
|
||||
assert stdenv.isDarwin -> stdenv.gcc.nativeTools;
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "clang-${version}";
|
||||
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
{ stdenv, pkgs, config, haveLibCxx }:
|
||||
{ stdenv, pkgs, config
|
||||
, haveLibCxx ? true
|
||||
, useClang33 ? false }:
|
||||
|
||||
import ../generic rec {
|
||||
inherit config;
|
||||
|
@ -33,7 +35,7 @@ import ../generic rec {
|
|||
};
|
||||
} else null;
|
||||
binutils = import ../../build-support/native-darwin-cctools-wrapper {inherit stdenv;};
|
||||
clang = pkgs.clang_34;
|
||||
clang = if useClang33 then pkgs.clang_33 else pkgs.clang;
|
||||
coreutils = pkgs.coreutils;
|
||||
shell = pkgs.bash + "/bin/sh";
|
||||
};
|
||||
|
|
|
@ -37,7 +37,6 @@ rec {
|
|||
inherit config;
|
||||
stdenv = stdenvNative;
|
||||
pkgs = stdenvNativePkgs;
|
||||
haveLibCxx = true;
|
||||
};
|
||||
|
||||
stdenvDarwinNaked = import ./darwin {
|
||||
|
@ -47,6 +46,13 @@ rec {
|
|||
haveLibCxx = false;
|
||||
};
|
||||
|
||||
stdenvDarwin33 = import ./darwin {
|
||||
inherit config;
|
||||
stdenv = stdenvNative;
|
||||
pkgs = stdenvNativePkgs;
|
||||
useClang33 = true;
|
||||
};
|
||||
|
||||
|
||||
# Linux standard environment.
|
||||
stdenvLinux = (import ./linux { inherit system allPackages platform config;}).stdenvLinux;
|
||||
|
|
|
@ -24,6 +24,7 @@ stdenv.mkDerivation rec {
|
|||
postUnpack =
|
||||
'' export CPATH="${bzip2}/include"
|
||||
export LIBRARY_PATH="${bzip2}/lib"
|
||||
export CXXFLAGS="-O3 -Wno-error=reserved-user-defined-literal"
|
||||
'';
|
||||
|
||||
configureFlags =
|
||||
|
@ -68,9 +69,6 @@ stdenv.mkDerivation rec {
|
|||
enableParallelBuilding = true;
|
||||
|
||||
meta = {
|
||||
# due to builder args bug; see
|
||||
# https://github.com/NixOS/nix/commit/b224ac15201c57b40ea855f5a98b1bd166c1c7f6
|
||||
broken = stdenv.isDarwin;
|
||||
description = "The Nix Deployment System";
|
||||
homepage = http://nixos.org/;
|
||||
license = stdenv.lib.licenses.lgpl2Plus;
|
||||
|
|
|
@ -3209,11 +3209,7 @@ let
|
|||
|
||||
llvm_v = path: callPackage path { };
|
||||
|
||||
llvmPackages = if !stdenv.isDarwin then llvmPackages_34 else llvmPackages_34 // {
|
||||
# until someone solves build problems with _34
|
||||
llvm = llvm_33;
|
||||
clang = clang_33;
|
||||
};
|
||||
llvmPackages = llvmPackages_34;
|
||||
|
||||
llvmPackages_34 = recurseIntoAttrs (import ../development/compilers/llvm/3.4 {
|
||||
inherit stdenv newScope fetchurl;
|
||||
|
@ -11455,6 +11451,7 @@ let
|
|||
};
|
||||
|
||||
nixUnstable = callPackage ../tools/package-management/nix/unstable.nix {
|
||||
stdenv = if stdenv.isDarwin then allStdenvs.stdenvDarwin33 else stdenv;
|
||||
storeDir = config.nix.storeDir or "/nix/store";
|
||||
stateDir = config.nix.stateDir or "/nix/var";
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue