From ee6d0a7025df93ee93142de0c25264c586b125c7 Mon Sep 17 00:00:00 2001 From: Daiderd Jordan Date: Wed, 14 Mar 2018 23:02:52 +0100 Subject: [PATCH] ccl: fix darwin build /cc ZHF #36454 --- pkgs/development/compilers/ccl/default.nix | 15 +++------------ pkgs/top-level/all-packages.nix | 4 +++- 2 files changed, 6 insertions(+), 13 deletions(-) diff --git a/pkgs/development/compilers/ccl/default.nix b/pkgs/development/compilers/ccl/default.nix index 087f7470021..f3a4ff74aa0 100644 --- a/pkgs/development/compilers/ccl/default.nix +++ b/pkgs/development/compilers/ccl/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchurl, gcc, glibc, m4, coreutils }: +{ stdenv, fetchurl, bootstrap_cmds, coreutils, glibc, m4 }: let options = rec { @@ -27,19 +27,11 @@ let runtime = "dx86cl64"; kernel = "darwinx8664"; }; - i686-darwin = { - arch = "darwinx86"; - sha256 = x86_64-darwin.sha256; - runtime = "dx86cl"; - kernel = "darwinx8632"; - }; armv6l-linux = armv7l-linux; }; - cfg = options.${stdenv.system}; + cfg = options."${stdenv.system}" or (throw "missing source url for platform ${stdenv.system}"); in -assert builtins.hasAttr stdenv.system options; - stdenv.mkDerivation rec { name = "ccl-${version}"; version = "1.11.5"; @@ -49,7 +41,7 @@ stdenv.mkDerivation rec { sha256 = cfg.sha256; }; - buildInputs = if stdenv.isDarwin then [ m4 ] else [ gcc glibc m4 ]; + buildInputs = if stdenv.isDarwin then [ bootstrap_cmds m4 ] else [ glibc m4 ]; CCL_RUNTIME = cfg.runtime; CCL_KERNEL = cfg.kernel; @@ -58,7 +50,6 @@ stdenv.mkDerivation rec { substituteInPlace lisp-kernel/${CCL_KERNEL}/Makefile \ --replace "M4 = gm4" "M4 = m4" \ --replace "dtrace" "/usr/sbin/dtrace" \ - --replace "mig" "/usr/bin/mig" \ --replace "/bin/rm" "${coreutils}/bin/rm" \ --replace "/bin/echo" "${coreutils}/bin/echo" diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index c6e6c6adc6e..fbae4e25104 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -5797,7 +5797,9 @@ with pkgs; chickenEggs = callPackage ../development/tools/egg2nix/chicken-eggs.nix { }; }; - ccl = callPackage ../development/compilers/ccl { }; + ccl = callPackage ../development/compilers/ccl { + inherit (darwin) bootstrap_cmds; + }; chez = callPackage ../development/compilers/chez { inherit (darwin) cctools;