2014-06-11 10:38:01 +02:00
|
|
|
{ gmp, makeWrapper, gcc, runCommand, idris_plain, boehmgc}:
|
2013-06-05 22:29:10 +02:00
|
|
|
|
|
|
|
runCommand "idris-wrapper" {} ''
|
|
|
|
source ${makeWrapper}/nix-support/setup-hook
|
|
|
|
mkdir -p $out/bin
|
|
|
|
ln -s ${idris_plain}/bin/idris $out/bin
|
|
|
|
wrapProgram $out/bin/idris \
|
2014-06-11 10:38:01 +02:00
|
|
|
--suffix NIX_CFLAGS_COMPILE : '"-I${gmp}/include -L${gmp}/lib -L${boehmgc}/lib"' \
|
2013-06-05 22:29:10 +02:00
|
|
|
--suffix PATH : ${gcc}/bin
|
|
|
|
''
|