mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 17:33:09 +00:00
69d4adee1f
This was broken in preHook because addEnvHooks isn't defined yet.
18 lines
451 B
Nix
18 lines
451 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}
|
|
|
|
mkdir -p $out/nix-support
|
|
substituteAll ${./setup-hook.sh} $out/nix-support/setup-hook
|
|
'';
|
|
}
|
|
|