calc: don’t include glibc headers in closure

This commit is contained in:
Matthew Bauer 2019-08-14 12:54:07 -04:00 committed by Matthieu Coudron
parent 45e6253678
commit ae15177ade

View File

@ -15,7 +15,6 @@ stdenv.mkDerivation rec {
patchPhase = ''
substituteInPlace Makefile \
--replace 'all: check_include' 'all:' \
--replace '-install_name ''${LIBDIR}/libcalc''${LIB_EXT_VERSION}' '-install_name ''${T}''${LIBDIR}/libcalc''${LIB_EXT_VERSION}' \
--replace '-install_name ''${LIBDIR}/libcustcalc''${LIB_EXT_VERSION}' '-install_name ''${T}''${LIBDIR}/libcustcalc''${LIB_EXT_VERSION}'
'';
@ -25,7 +24,7 @@ stdenv.mkDerivation rec {
makeFlags = [
"T=$(out)"
"INCDIR=${lib.getDev stdenv.cc.libc}/include"
"INCDIR="
"BINDIR=/bin"
"LIBDIR=/lib"
"CALC_SHAREDIR=/share/calc"