nixpkgs/pkgs/development/compilers/idris/wrapper.nix

12 lines
421 B
Nix
Raw Normal View History

{ stdenv, gmp, makeWrapper, runCommand, idris_plain, boehmgc}:
2013-06-05 20:29:10 +00: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 \
--suffix NIX_CFLAGS_COMPILE : '"-I${gmp}/include -L${gmp}/lib -L${boehmgc}/lib"' \
--suffix PATH : ${stdenv.cc}/bin \
--suffix PATH : ${idris_plain}/bin
2013-06-05 20:29:10 +00:00
''