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

13 lines
370 B
Nix
Raw Normal View History

2018-07-02 01:32:47 +01:00
{ lib, symlinkJoin, makeWrapper, idris-no-deps, gcc, gmp }:
symlinkJoin {
2018-07-02 01:32:47 +01:00
inherit (idris-no-deps) name src meta;
paths = [ idris-no-deps ];
buildInputs = [ makeWrapper ];
postBuild = ''
wrapProgram $out/bin/idris \
2018-07-02 01:32:47 +01:00
--run 'export IDRIS_CC=''${IDRIS_CC:-${lib.getBin gcc}/bin/gcc}' \
--suffix LIBRARY_PATH : ${lib.makeLibraryPath [ gmp ]}
'';
}