2019-03-26 03:15:20 +00:00
|
|
|
{ stdenv, lib, symlinkJoin, makeWrapper, idris-no-deps, gmp }:
|
2017-11-02 21:51:35 +00:00
|
|
|
|
|
|
|
symlinkJoin {
|
2018-07-02 00:32:47 +00:00
|
|
|
inherit (idris-no-deps) name src meta;
|
|
|
|
paths = [ idris-no-deps ];
|
2017-11-02 21:51:35 +00:00
|
|
|
buildInputs = [ makeWrapper ];
|
|
|
|
postBuild = ''
|
|
|
|
wrapProgram $out/bin/idris \
|
2019-03-26 03:15:20 +00:00
|
|
|
--run 'export IDRIS_CC=''${IDRIS_CC:-${stdenv.cc}/bin/cc}' \
|
2020-04-28 04:08:48 +00:00
|
|
|
--set 'NIX_CC_WRAPPER_TARGET_HOST_${stdenv.cc.suffixSalt}' 1 \
|
2019-03-26 02:49:57 +00:00
|
|
|
--prefix NIX_CFLAGS_COMPILE " " "-I${lib.getDev gmp}/include" \
|
|
|
|
--prefix NIX_CFLAGS_LINK " " "-L${lib.getLib gmp}/lib"
|
2018-07-02 00:32:47 +00:00
|
|
|
'';
|
|
|
|
}
|