Skip to content

Commit

Permalink
zig: apply suggestion from @cole-h
Browse files Browse the repository at this point in the history
  • Loading branch information
Xe committed Apr 13, 2020
1 parent f94bd95 commit 24b3158
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions pkgs/development/compilers/zig/default.nix
@@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, cmake, llvmPackages, libxml2, zlib }:
{ stdenv, fetchFromGitHub, cmake, llvmPackages, libxml2, zlib, substituteAll }:

llvmPackages.stdenv.mkDerivation rec {
version = "0.6.0";
Expand All @@ -20,12 +20,12 @@ llvmPackages.stdenv.mkDerivation rec {
zlib
];

patches = [ ./llvm10_polly.patch ];

postPatch = ''
export llvm_extras=-Wl,${llvmPackages.llvm}/lib/LLVMPolly.so
substituteAllInPlace CMakeLists.txt
'';
patches = [
(substituteAll {
src = ./llvm10_polly.patch;
llvm_extras = "-Wl,${llvmPackages.llvm}/lib/LLVMPolly.so";
})
];

preBuild = ''
export HOME=$TMPDIR;
Expand Down

0 comments on commit 24b3158

Please sign in to comment.