2017-11-02 21:51:35 +00:00
|
|
|
{ symlinkJoin, makeWrapper, stdenv }: idris: { path, lib }:
|
|
|
|
|
|
|
|
symlinkJoin {
|
|
|
|
name = idris.name;
|
|
|
|
src = idris.src;
|
|
|
|
paths = [ idris ];
|
|
|
|
buildInputs = [ makeWrapper ];
|
|
|
|
postBuild = ''
|
|
|
|
wrapProgram $out/bin/idris \
|
|
|
|
--suffix PATH : ${ stdenv.lib.makeBinPath path } \
|
|
|
|
--suffix LIBRARY_PATH : ${stdenv.lib.makeLibraryPath lib}
|
2018-01-21 00:58:06 +00:00
|
|
|
|
|
|
|
mkdir -p $out/nix-support
|
|
|
|
substituteAll ${./setup-hook.sh} $out/nix-support/setup-hook
|
2017-11-02 21:51:35 +00:00
|
|
|
'';
|
|
|
|
}
|
|
|
|
|