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