mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-20 12:42:24 +00:00
28b6fb61e6
This is done for the sake of Yosemite, which does not have gcc, and yet this change is also compatible with Linux.
12 lines
421 B
Nix
12 lines
421 B
Nix
{ stdenv, gmp, makeWrapper, runCommand, idris_plain, boehmgc}:
|
|
|
|
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 \
|
|
--suffix NIX_CFLAGS_COMPILE : '"-I${gmp}/include -L${gmp}/lib -L${boehmgc}/lib"' \
|
|
--suffix PATH : ${stdenv.cc}/bin \
|
|
--suffix PATH : ${idris_plain}/bin
|
|
''
|