Merge pull request #42855 from Infinisil/idris-gcc
Idris: Wrap with IDRIS_CC
This commit is contained in:
commit
45f8c2ac29
@ -31,10 +31,9 @@
|
|||||||
|
|
||||||
# Idris wrapper with specified compiler and library paths, used to build packages
|
# Idris wrapper with specified compiler and library paths, used to build packages
|
||||||
|
|
||||||
idris =
|
idris = pkgs.callPackage ./idris-wrapper.nix {
|
||||||
(pkgs.callPackage ./idris-wrapper.nix {})
|
inherit idris-no-deps;
|
||||||
idris-no-deps
|
};
|
||||||
{ path = [ pkgs.gcc ]; lib = [pkgs.gmp]; };
|
|
||||||
|
|
||||||
# Utilities for building packages
|
# Utilities for building packages
|
||||||
|
|
||||||
|
@ -1,14 +1,12 @@
|
|||||||
{ symlinkJoin, makeWrapper, stdenv }: idris: { path, lib }:
|
{ lib, symlinkJoin, makeWrapper, idris-no-deps, gcc, gmp }:
|
||||||
|
|
||||||
symlinkJoin {
|
symlinkJoin {
|
||||||
name = idris.name;
|
inherit (idris-no-deps) name src meta;
|
||||||
src = idris.src;
|
paths = [ idris-no-deps ];
|
||||||
paths = [ idris ];
|
|
||||||
buildInputs = [ makeWrapper ];
|
buildInputs = [ makeWrapper ];
|
||||||
meta.platforms = idris.meta.platforms;
|
|
||||||
postBuild = ''
|
postBuild = ''
|
||||||
wrapProgram $out/bin/idris \
|
wrapProgram $out/bin/idris \
|
||||||
--suffix PATH : ${ stdenv.lib.makeBinPath path } \
|
--run 'export IDRIS_CC=''${IDRIS_CC:-${lib.getBin gcc}/bin/gcc}' \
|
||||||
--suffix LIBRARY_PATH : ${stdenv.lib.makeLibraryPath lib}
|
--suffix LIBRARY_PATH : ${lib.makeLibraryPath [ gmp ]}
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user