git.iko.soy/typeable/nixpkgs
on master help sign in
ccl: fix darwin build

/cc ZHF #36454

commitee6d0a7025df93ee93142de0c25264c586b125c7 authorDaiderd Jordan <daiderd@gmail.com> dateWed 14 Mar 2018, 23:02 (9 years ago) parentb546c74
2 files changed+6−13
pkgs/development/compilers/ccl/default.nix+3−12 pkgs/top-level/all-packages.nix+3−1
pkgs/development/compilers/ccl/default.nix+3−12
@@ -1,4 +1,4 @@
1−{ stdenv, fetchurl, gcc, glibc, m4, coreutils }:
1+{ stdenv, fetchurl, bootstrap_cmds, coreutils, glibc, m4 }:
22
33let
44 options = rec {
@@ -27,19 +27,11 @@ let
2727 runtime = "dx86cl64";
2828 kernel = "darwinx8664";
2929 };
30− i686-darwin = {
31− arch = "darwinx86";
32− sha256 = x86_64-darwin.sha256;
33− runtime = "dx86cl";
34− kernel = "darwinx8632";
35− };
3630 armv6l-linux = armv7l-linux;
3731 };
38− cfg = options.${stdenv.system};
32+ cfg = options."${stdenv.system}" or (throw "missing source url for platform ${stdenv.system}");
3933in
4034
41−assert builtins.hasAttr stdenv.system options;
42−
4335stdenv.mkDerivation rec {
4436 name = "ccl-${version}";
4537 version = "1.11.5";
@@ -49,7 +41,7 @@ stdenv.mkDerivation rec {
4941 sha256 = cfg.sha256;
5042 };
5143
52− buildInputs = if stdenv.isDarwin then [ m4 ] else [ gcc glibc m4 ];
44+ buildInputs = if stdenv.isDarwin then [ bootstrap_cmds m4 ] else [ glibc m4 ];
5345
5446 CCL_RUNTIME = cfg.runtime;
5547 CCL_KERNEL = cfg.kernel;
@@ -58,7 +50,6 @@ stdenv.mkDerivation rec {
5850 substituteInPlace lisp-kernel/${CCL_KERNEL}/Makefile \
5951 --replace "M4 = gm4" "M4 = m4" \
6052 --replace "dtrace" "/usr/sbin/dtrace" \
61− --replace "mig" "/usr/bin/mig" \
6253 --replace "/bin/rm" "${coreutils}/bin/rm" \
6354 --replace "/bin/echo" "${coreutils}/bin/echo"
6455
pkgs/top-level/all-packages.nix+3−1
@@ -5797,7 +5797,9 @@ with pkgs;
57975797 chickenEggs = callPackage ../development/tools/egg2nix/chicken-eggs.nix { };
57985798 };
57995799
5800− ccl = callPackage ../development/compilers/ccl { };
5800+ ccl = callPackage ../development/compilers/ccl {
5801+ inherit (darwin) bootstrap_cmds;
5802+ };
58015803
58025804 chez = callPackage ../development/compilers/chez {
58035805 inherit (darwin) cctools;