llvmPackages: Organize files
Always do pkg/default.nix not pkg.nix; use directories to avoid prefixing patches and other files.
This commit is contained in:
@@ -28,12 +28,12 @@ in rec {
|
||||
src = "${src}/clang";
|
||||
};
|
||||
|
||||
lld = callPackage ./lld.nix {
|
||||
lld = callPackage ./lld {
|
||||
inherit llvm version;
|
||||
src = "${src}/lld";
|
||||
};
|
||||
|
||||
llvm = callPackage ./llvm.nix {
|
||||
llvm = callPackage ./llvm {
|
||||
inherit version;
|
||||
src = "${src}/llvm";
|
||||
};
|
||||
|
||||
+2
-2
@@ -57,8 +57,8 @@ in stdenv.mkDerivation rec {
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
substitute '${./llvm-outputs.patch}' ./llvm-outputs.patch --subst-var lib
|
||||
patch -p1 < ./llvm-outputs.patch
|
||||
substitute '${./outputs.patch}' ./outputs.patch --subst-var lib
|
||||
patch -p1 < ./outputs.patch
|
||||
'';
|
||||
|
||||
# hacky fix: created binaries need to be run before installation
|
||||
Reference in New Issue
Block a user