2018-07-02 00:51:03 +01:00
|
|
|
{ symlinkJoin, makeWrapper, stdenv, gcc }: idris: { path, lib }:
|
2017-11-02 21:51:35 +00:00
|
|
|
|
|
|
|
symlinkJoin {
|
|
|
|
name = idris.name;
|
|
|
|
src = idris.src;
|
|
|
|
paths = [ idris ];
|
|
|
|
buildInputs = [ makeWrapper ];
|
2017-12-26 09:55:17 +00:00
|
|
|
meta.platforms = idris.meta.platforms;
|
2017-11-02 21:51:35 +00:00
|
|
|
postBuild = ''
|
|
|
|
wrapProgram $out/bin/idris \
|
2018-07-02 00:51:03 +01:00
|
|
|
--run 'export IDRIS_CC=''${IDRIS_CC:-${stdenv.lib.getBin gcc}/bin/gcc}' \
|
2017-11-02 21:51:35 +00:00
|
|
|
--suffix PATH : ${ stdenv.lib.makeBinPath path } \
|
|
|
|
--suffix LIBRARY_PATH : ${stdenv.lib.makeLibraryPath lib}
|
|
|
|
'';
|
|
|
|
}
|