mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-23 14:13:35 +00:00
11 lines
341 B
Nix
11 lines
341 B
Nix
{ gmp, makeWrapper, gcc, runCommand, idris_plain}:
|
|
|
|
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"' \
|
|
--suffix PATH : ${gcc}/bin
|
|
''
|