futhark: only wrap the 'futhark' executable
Newer versions of Futhark only care about this executable, and the others are thin wrappers that will go away in a future version.
This commit is contained in:
parent
1a2c78b420
commit
27f7cf2cad
|
@ -536,10 +536,7 @@ self: super: builtins.intersectAttrs super {
|
||||||
let path = stdenv.lib.makeBinPath [ gcc ];
|
let path = stdenv.lib.makeBinPath [ gcc ];
|
||||||
in overrideCabal (addBuildTool super.futhark makeWrapper) (_drv: {
|
in overrideCabal (addBuildTool super.futhark makeWrapper) (_drv: {
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
wrapProgram $out/bin/futhark-c \
|
wrapProgram $out/bin/futhark \
|
||||||
--prefix PATH : "${path}"
|
|
||||||
|
|
||||||
wrapProgram $out/bin/futhark-opencl \
|
|
||||||
--prefix PATH : "${path}" \
|
--prefix PATH : "${path}" \
|
||||||
--set NIX_CC_WRAPPER_x86_64_unknown_linux_gnu_TARGET_HOST 1 \
|
--set NIX_CC_WRAPPER_x86_64_unknown_linux_gnu_TARGET_HOST 1 \
|
||||||
--set NIX_CFLAGS_COMPILE "-I${opencl-headers}/include" \
|
--set NIX_CFLAGS_COMPILE "-I${opencl-headers}/include" \
|
||||||
|
|
Loading…
Reference in New Issue