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