mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 03:17:13 +00:00
15 lines
355 B
Nix
15 lines
355 B
Nix
|
{ 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}
|
||
|
'';
|
||
|
}
|
||
|
|