Add wrapper for idris exe for gcc/gmp runtime deps
Fixes #10450 When compiling packages with -o the executable invokes gcc. There is no compile time flag to control this invocation so for now we create a wrapper which provides the dependency at runtime.
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
{ symlinkJoin, makeWrapper, stdenv }: idris: { path, lib }:
|
||||
|
||||
symlinkJoin {
|
||||
name = idris.name;
|
||||
src = idris.src;
|
||||
paths = [ idris ];
|
||||
buildInputs = [ makeWrapper ];
|
||||
postBuild = ''
|
||||
wrapProgram $out/bin/idris \
|
||||
--suffix PATH : ${ stdenv.lib.makeBinPath path } \
|
||||
--suffix LIBRARY_PATH : ${stdenv.lib.makeLibraryPath lib}
|
||||
'';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user