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 ];
|
2022-08-15 05:40:21 +02:00
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
2017-11-02 22:51:35 +01:00
|
|
|
postBuild = ''
|
|
|
|
wrapProgram $out/bin/idris \
|
2019-03-26 04:15:20 +01:00
|
|
|
--run 'export IDRIS_CC=''${IDRIS_CC:-${stdenv.cc}/bin/cc}' \
|
2020-04-28 06:08:48 +02:00
|
|
|
--set 'NIX_CC_WRAPPER_TARGET_HOST_${stdenv.cc.suffixSalt}' 1 \
|
2019-03-26 03:49:57 +01:00
|
|
|
--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
|
|
|
'';
|
|
|
|
}
|