diff options
author | Ben Sima <ben@bsima.me> | 2023-09-21 22:30:17 -0400 |
---|---|---|
committer | Ben Sima <ben@bsima.me> | 2023-10-03 21:33:37 -0400 |
commit | 4226cbd8020253b010fb44d395db12efe68e1272 (patch) | |
tree | 4ee121a0cf26098b1cec1feed24c2cdd8e036562 /Biz/Bild/Builder.nix | |
parent | dbdf4da2576f889544a33ce0bad4b8a5ff3eca87 (diff) |
Rename BIZ_ROOT to CODEROOT
BIZ_ROOT was too specific. CODEROOT allows for other (non-biz) projects to live
in the root of the repo. I didn't want to call it GIT_ROOT because maybe someday
I won't want to use git. But I'll never not use code.
Diffstat (limited to 'Biz/Bild/Builder.nix')
-rw-r--r-- | Biz/Bild/Builder.nix | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Biz/Bild/Builder.nix b/Biz/Bild/Builder.nix index f9eb31d..2ed3dd1 100644 --- a/Biz/Bild/Builder.nix +++ b/Biz/Bild/Builder.nix @@ -10,7 +10,7 @@ let analysis = builtins.fromJSON analysisJSON; build = _: target: let name = target.out; - root = builtins.getEnv "BIZ_ROOT"; + root = builtins.getEnv "CODEROOT"; mainModule = target.mainModule; compileLine = lib.strings.concatStringsSep " " ([target.compiler] ++ target.compilerFlags); @@ -51,18 +51,18 @@ let else lib.attrsets.attrVals target.sysdeps pkgs; - BIZ_ROOT = "."; + CODEROOT = "."; builders = { base = stdenv.mkDerivation rec { - inherit name src BIZ_ROOT preBuild; + inherit name src CODEROOT preBuild; buildInputs = langdeps_ ++ sysdeps_; installPhase = "install -D ${name} $out/bin/${name}"; buildPhase = compileLine; }; haskell = stdenv.mkDerivation rec { - inherit name src BIZ_ROOT preBuild; + inherit name src CODEROOT preBuild; nativeBuildInputs = [ makeWrapper ]; buildInputs = sysdeps_ ++ [ (bild.haskell.ghcWith (p: @@ -78,7 +78,7 @@ let }; c = stdenv.mkDerivation rec { - inherit name src BIZ_ROOT preBuild; + inherit name src CODEROOT preBuild; buildInputs = langdeps_ ++ sysdeps_; installPhase = "install -D ${name} $out/bin/${name}"; buildPhase = lib.strings.concatStringsSep " " [ @@ -91,7 +91,7 @@ let }; python = bild.python.buildPythonApplication rec { - inherit name src BIZ_ROOT; + inherit name src CODEROOT; propagatedBuildInputs = langdeps_ ++ sysdeps_; buildInputs = sysdeps_; nativeCheckInputs = [ black mypy ruff ]; |