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