mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-10-14 00:22:44 +03:00
rocfft: fix hydra workaround
This commit is contained in:
parent
2821a121dc
commit
eb0dcbcf13
@ -135,6 +135,7 @@ in stdenv.mkDerivation {
|
|||||||
inherit (rocfft) pname version outputs src passthru meta;
|
inherit (rocfft) pname version outputs src passthru meta;
|
||||||
|
|
||||||
dontUnpack = true;
|
dontUnpack = true;
|
||||||
|
dontPatch = true;
|
||||||
dontConfigure = true;
|
dontConfigure = true;
|
||||||
dontBuild = true;
|
dontBuild = true;
|
||||||
|
|
||||||
@ -155,4 +156,22 @@ in stdenv.mkDerivation {
|
|||||||
'' + ''
|
'' + ''
|
||||||
runHook postInstall
|
runHook postInstall
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
# Fix paths
|
||||||
|
preFixup = ''
|
||||||
|
substituteInPlace $out/include/*.h $out/rocfft/include/*.h \
|
||||||
|
--replace "${rocfft}" "$out"
|
||||||
|
|
||||||
|
patchelf --set-rpath \
|
||||||
|
$(patchelf --print-rpath $out/lib/librocfft.so | sed 's,${rocfft}/lib,'"$out/lib"',') \
|
||||||
|
$out/lib/librocfft.so
|
||||||
|
'' + lib.optionalString buildTests ''
|
||||||
|
patchelf --set-rpath \
|
||||||
|
$(patchelf --print-rpath $test/bin/rocfft-test | sed 's,${rocfft}/lib,'"$out/lib"',') \
|
||||||
|
$test/bin/rocfft-test
|
||||||
|
'' + lib.optionalString buildBenchmarks ''
|
||||||
|
patchelf --set-rpath \
|
||||||
|
$(patchelf --print-rpath $benchmark/bin/rocfft-rider | sed 's,${rocfft}/lib,'"$out/lib"',') \
|
||||||
|
$benchmark/bin/rocfft-rider
|
||||||
|
'';
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user