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

16 lines
480 B
Nix
Raw Normal View History

{ symlinkJoin, makeWrapper, stdenv, gcc }: idris: { path, lib }:
symlinkJoin {
name = idris.name;
src = idris.src;
paths = [ idris ];
buildInputs = [ makeWrapper ];
2017-12-26 09:55:17 +00:00
meta.platforms = idris.meta.platforms;
postBuild = ''
wrapProgram $out/bin/idris \
--run 'export IDRIS_CC=''${IDRIS_CC:-${stdenv.lib.getBin gcc}/bin/gcc}' \
--suffix PATH : ${ stdenv.lib.makeBinPath path } \
--suffix LIBRARY_PATH : ${stdenv.lib.makeLibraryPath lib}
'';
}