mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-19 00:08:32 +01:00
12 lines
370 B
Nix
12 lines
370 B
Nix
{ lib, symlinkJoin, makeWrapper, idris-no-deps, gcc, gmp }:
|
|
|
|
symlinkJoin {
|
|
inherit (idris-no-deps) name src meta;
|
|
paths = [ idris-no-deps ];
|
|
buildInputs = [ makeWrapper ];
|
|
postBuild = ''
|
|
wrapProgram $out/bin/idris \
|
|
--run 'export IDRIS_CC=''${IDRIS_CC:-${lib.getBin gcc}/bin/gcc}' \
|
|
--suffix LIBRARY_PATH : ${lib.makeLibraryPath [ gmp ]}
|
|
'';
|
|
}
|