mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-15 13:37:21 +03:00
a7197741ac
Closes #4314
12 lines
412 B
Nix
12 lines
412 B
Nix
{ gmp, makeWrapper, gcc, 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 : ${gcc}/bin \
|
|
--suffix PATH : ${idris_plain}/bin
|
|
''
|