mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 07:53:19 +00:00
zig: apply suggestion from @cole-h
This commit is contained in:
parent
f94bd95368
commit
24b3158efc
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, fetchFromGitHub, cmake, llvmPackages, libxml2, zlib }:
|
{ stdenv, fetchFromGitHub, cmake, llvmPackages, libxml2, zlib, substituteAll }:
|
||||||
|
|
||||||
llvmPackages.stdenv.mkDerivation rec {
|
llvmPackages.stdenv.mkDerivation rec {
|
||||||
version = "0.6.0";
|
version = "0.6.0";
|
||||||
@ -20,12 +20,12 @@ llvmPackages.stdenv.mkDerivation rec {
|
|||||||
zlib
|
zlib
|
||||||
];
|
];
|
||||||
|
|
||||||
patches = [ ./llvm10_polly.patch ];
|
patches = [
|
||||||
|
(substituteAll {
|
||||||
postPatch = ''
|
src = ./llvm10_polly.patch;
|
||||||
export llvm_extras=-Wl,${llvmPackages.llvm}/lib/LLVMPolly.so
|
llvm_extras = "-Wl,${llvmPackages.llvm}/lib/LLVMPolly.so";
|
||||||
substituteAllInPlace CMakeLists.txt
|
})
|
||||||
'';
|
];
|
||||||
|
|
||||||
preBuild = ''
|
preBuild = ''
|
||||||
export HOME=$TMPDIR;
|
export HOME=$TMPDIR;
|
||||||
|
Loading…
Reference in New Issue
Block a user