git.iko.soy/typeable/nixpkgs
on master help sign in
ccl: fix build with glibc 2.26
commitfd94789a18a7a8dbdad1e6d4085edafa832658b6 authorOrivej Desh <orivej@gmx.fr> dateThu 9 Nov 2017, 10:59 (9 years ago) parenta477ede
1 file changed+8−2
pkgs/development/compilers/ccl/default.nix+8−2
pkgs/development/compilers/ccl/default.nix+8−2
@@ -1,4 +1,4 @@
1−{ stdenv, fetchsvn, gcc, glibc, m4, coreutils }:
1+{ stdenv, fetchsvn, fetchpatch, gcc, glibc, m4, coreutils }:
22
33let
44 options = rec {
@@ -39,12 +39,18 @@ stdenv.mkDerivation rec {
3939 sha256 = cfg.sha256;
4040 };
4141
42+ patches = fetchpatch {
43+ name = "ccl-1.11-glibc-2.26.patch";
44+ url = https://patch-diff.githubusercontent.com/raw/Clozure/ccl/pull/80.patch;
45+ sha256 = "02v6287w0nppfpvkn9dyd5rvq2zkgd47ia9gs17hrww2hgzr6agd";
46+ };
47+
4248 buildInputs = [ gcc glibc m4 ];
4349
4450 CCL_RUNTIME = cfg.runtime;
4551 CCL_KERNEL = cfg.kernel;
4652
47− patchPhase = ''
53+ postPatch = ''
4854 substituteInPlace lisp-kernel/${CCL_KERNEL}/Makefile \
4955 --replace "svnversion" "echo ${revision}" \
5056 --replace "/bin/rm" "${coreutils}/bin/rm" \