nixpkgs/pkgs/development/idris-modules/idris-wrapper.nix
Matthew Pickering 8d55538f97 Revert "idris: Move library setup to the setup hook."
This reverts commit 69d4adee1f8b6278a19708a9051f3290f8f13e04.
2018-02-07 19:24:31 +00:00

15 lines
395 B
Nix

{ symlinkJoin, makeWrapper, stdenv }: idris: { path, lib }:
symlinkJoin {
name = idris.name;
src = idris.src;
paths = [ idris ];
buildInputs = [ makeWrapper ];
meta.platforms = idris.meta.platforms;
postBuild = ''
wrapProgram $out/bin/idris \
--suffix PATH : ${ stdenv.lib.makeBinPath path } \
--suffix LIBRARY_PATH : ${stdenv.lib.makeLibraryPath lib}
'';
}