···17 inherit (data) owner repo rev sha256;
18 };
19 vendorSha256 = data.vendorSha256 or null;
02021 # Terraform allow checking the provider versions, but this breaks
22 # if the versions are not provided via file paths.
···17 inherit (data) owner repo rev sha256;
18 };
19 vendorSha256 = data.vendorSha256 or null;
20+ deleteVendor = data.deleteVendor or false;
2122 # Terraform allow checking the provider versions, but this breaks
23 # if the versions are not provided via file paths.
···15, # LLVM is conceptually a run-time-only depedendency, but for
16 # non-x86, we need LLVM to bootstrap later stages, so it becomes a
17 # build-time dependency too.
18- buildLlvmPackages, llvmPackages
1920, # If enabled, GHC will be built with the GPL-free but slower integer-simple
21 # library instead of the faster but GPLed integer-gmp library.
···122123 toolsForTarget = [
124 pkgsBuildTarget.targetPackages.stdenv.cc
125- ] ++ lib.optional useLLVM buildLlvmPackages.llvm;
126127 targetCC = builtins.head toolsForTarget;
128
···15, # LLVM is conceptually a run-time-only depedendency, but for
16 # non-x86, we need LLVM to bootstrap later stages, so it becomes a
17 # build-time dependency too.
18+ buildTargetLlvmPackages, llvmPackages
1920, # If enabled, GHC will be built with the GPL-free but slower integer-simple
21 # library instead of the faster but GPLed integer-gmp library.
···122123 toolsForTarget = [
124 pkgsBuildTarget.targetPackages.stdenv.cc
125+ ] ++ lib.optional useLLVM buildTargetLlvmPackages.llvm;
126127 targetCC = builtins.head toolsForTarget;
128
+2-2
pkgs/development/compilers/ghc/8.8.4.nix
···14, # LLVM is conceptually a run-time-only depedendency, but for
15 # non-x86, we need LLVM to bootstrap later stages, so it becomes a
16 # build-time dependency too.
17- buildLlvmPackages, llvmPackages
1819, # If enabled, GHC will be built with the GPL-free but slower integer-simple
20 # library instead of the faster but GPLed integer-gmp library.
···130131 toolsForTarget = [
132 pkgsBuildTarget.targetPackages.stdenv.cc
133- ] ++ lib.optional useLLVM buildLlvmPackages.llvm;
134135 targetCC = builtins.head toolsForTarget;
136
···14, # LLVM is conceptually a run-time-only depedendency, but for
15 # non-x86, we need LLVM to bootstrap later stages, so it becomes a
16 # build-time dependency too.
17+ buildTargetLlvmPackages, llvmPackages
1819, # If enabled, GHC will be built with the GPL-free but slower integer-simple
20 # library instead of the faster but GPLed integer-gmp library.
···130131 toolsForTarget = [
132 pkgsBuildTarget.targetPackages.stdenv.cc
133+ ] ++ lib.optional useLLVM buildTargetLlvmPackages.llvm;
134135 targetCC = builtins.head toolsForTarget;
136
+2-2
pkgs/development/compilers/ghc/9.0.1.nix
···16, # LLVM is conceptually a run-time-only depedendency, but for
17 # non-x86, we need LLVM to bootstrap later stages, so it becomes a
18 # build-time dependency too.
19- buildLlvmPackages, llvmPackages
2021, # If enabled, GHC will be built with the GPL-free but slower integer-simple
22 # library instead of the faster but GPLed integer-gmp library.
···117118 toolsForTarget = [
119 pkgsBuildTarget.targetPackages.stdenv.cc
120- ] ++ lib.optional useLLVM buildLlvmPackages.llvm;
121122 targetCC = builtins.head toolsForTarget;
123
···16, # LLVM is conceptually a run-time-only depedendency, but for
17 # non-x86, we need LLVM to bootstrap later stages, so it becomes a
18 # build-time dependency too.
19+ buildTargetLlvmPackages, llvmPackages
2021, # If enabled, GHC will be built with the GPL-free but slower integer-simple
22 # library instead of the faster but GPLed integer-gmp library.
···117118 toolsForTarget = [
119 pkgsBuildTarget.targetPackages.stdenv.cc
120+ ] ++ lib.optional useLLVM buildTargetLlvmPackages.llvm;
121122 targetCC = builtins.head toolsForTarget;
123
+2-2
pkgs/development/compilers/ghc/9.2.1.nix
···16, # LLVM is conceptually a run-time-only depedendency, but for
17 # non-x86, we need LLVM to bootstrap later stages, so it becomes a
18 # build-time dependency too.
19- buildLlvmPackages, llvmPackages
2021, # If enabled, GHC will be built with the GPL-free but slower integer-simple
22 # library instead of the faster but GPLed integer-gmp library.
···117118 toolsForTarget = [
119 pkgsBuildTarget.targetPackages.stdenv.cc
120- ] ++ lib.optional useLLVM buildLlvmPackages.llvm;
121122 targetCC = builtins.head toolsForTarget;
123
···16, # LLVM is conceptually a run-time-only depedendency, but for
17 # non-x86, we need LLVM to bootstrap later stages, so it becomes a
18 # build-time dependency too.
19+ buildTargetLlvmPackages, llvmPackages
2021, # If enabled, GHC will be built with the GPL-free but slower integer-simple
22 # library instead of the faster but GPLed integer-gmp library.
···117118 toolsForTarget = [
119 pkgsBuildTarget.targetPackages.stdenv.cc
120+ ] ++ lib.optional useLLVM buildTargetLlvmPackages.llvm;
121122 targetCC = builtins.head toolsForTarget;
123
+2-2
pkgs/development/compilers/ghc/head.nix
···21, # LLVM is conceptually a run-time-only depedendency, but for
22 # non-x86, we need LLVM to bootstrap later stages, so it becomes a
23 # build-time dependency too.
24- buildLlvmPackages, llvmPackages
2526, # If enabled, GHC will be built with the GPL-free but slightly slower native
27 # bignum backend instead of the faster but GPLed gmp backend.
···130131 toolsForTarget = [
132 pkgsBuildTarget.targetPackages.stdenv.cc
133- ] ++ lib.optional useLLVM buildLlvmPackages.llvm;
134135 targetCC = builtins.head toolsForTarget;
136
···21, # LLVM is conceptually a run-time-only depedendency, but for
22 # non-x86, we need LLVM to bootstrap later stages, so it becomes a
23 # build-time dependency too.
24+ buildTargetLlvmPackages, llvmPackages
2526, # If enabled, GHC will be built with the GPL-free but slightly slower native
27 # bignum backend instead of the faster but GPLed gmp backend.
···130131 toolsForTarget = [
132 pkgsBuildTarget.targetPackages.stdenv.cc
133+ ] ++ lib.optional useLLVM buildTargetLlvmPackages.llvm;
134135 targetCC = builtins.head toolsForTarget;
136
···64 if s.len > 0 and s[0] == '"':
65 s = s.unescape()
66000000000000067proc configurePhase*() =
68 ## Generate "config.nims" which will be read by the Nim
69 ## compiler during later phases.
···103 nf = getNimbleFilePath()
104 bins = nf.getNimbleValues("bin")
105 srcDir = nf.getNimbleValue("srcDir", ".")
106- binDir = getenv("outputBin", getenv("out", "/dev/null")) / "bin"
107 if bins != @[]:
108 for bin in bins:
109 cmds.add("nim compile $# --outdir:$# $#" %
110 [getenv"nimFlags", binDir, normalizedPath(srcDir / bin)])
111 if getEnvBool"nimDoc":
112 echo "generating documentation"
113- let docDir = getenv("outputDoc", (getenv("out", "/dev/null") / "doc"))
114 for path in walkFiles(srcDir / "*.nim"):
115 cmds.add("nim doc --outdir:$# $#" % [docDir, path])
116 if cmds.len > 0:
···126 let
127 nf = getNimbleFilePath()
128 srcDir = nf.getNimbleValue("srcDir", ".")
129- devDir = getenv("outputDev", getenv("out", "/dev/null"))
130 echo "Install ", srcDir, " to ", devDir
131 copyDir(normalizedPath(srcDir), normalizedPath(devDir / srcDir))
132 copyFile(nf, devDir / nf.extractFilename)
···64 if s.len > 0 and s[0] == '"':
65 s = s.unescape()
6667+proc getOutputDir(name: string): string =
68+ ## Return the output directory for output `name`.
69+ ## If `name` is not a valid output then the first output
70+ ## is returned as a default.
71+ let outputs = splitWhitespace getEnv("outputs")
72+ doAssert(outputs.len > 0)
73+ if outputs.contains name:
74+ result = getEnv(name)
75+ if result == "":
76+ result = getEnv("out")
77+ if result == "":
78+ result = getEnv(outputs[0], "/dev/null")
79+80proc configurePhase*() =
81 ## Generate "config.nims" which will be read by the Nim
82 ## compiler during later phases.
···116 nf = getNimbleFilePath()
117 bins = nf.getNimbleValues("bin")
118 srcDir = nf.getNimbleValue("srcDir", ".")
119+ binDir = getOutputDir("bin") / "bin"
120 if bins != @[]:
121 for bin in bins:
122 cmds.add("nim compile $# --outdir:$# $#" %
123 [getenv"nimFlags", binDir, normalizedPath(srcDir / bin)])
124 if getEnvBool"nimDoc":
125 echo "generating documentation"
126+ let docDir = getOutputDir("doc") / "doc"
127 for path in walkFiles(srcDir / "*.nim"):
128 cmds.add("nim doc --outdir:$# $#" % [docDir, path])
129 if cmds.len > 0:
···139 let
140 nf = getNimbleFilePath()
141 srcDir = nf.getNimbleValue("srcDir", ".")
142+ devDir = getOutputDir "dev"
143 echo "Install ", srcDir, " to ", devDir
144 copyDir(normalizedPath(srcDir), normalizedPath(devDir / srcDir))
145 copyFile(nf, devDir / nf.extractFilename)