2018-07-02 01:32:47 +01:00
|
|
|
{ lib, symlinkJoin, makeWrapper, idris-no-deps, gcc, gmp }:
|
2017-11-02 21:51:35 +00:00
|
|
|
|
|
|
|
symlinkJoin {
|
2018-07-02 01:32:47 +01: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 \
|
2018-07-02 01:32:47 +01:00
|
|
|
--run 'export IDRIS_CC=''${IDRIS_CC:-${lib.getBin gcc}/bin/gcc}' \
|
|
|
|
--suffix LIBRARY_PATH : ${lib.makeLibraryPath [ gmp ]}
|
|
|
|
'';
|
|
|
|
}
|