nixpkgs/pkgs/development/idris-modules/idris-wrapper.nix

15 lines
355 B
Nix
Raw Normal View History

{ 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}
'';
}