summaryrefslogtreecommitdiff
path: root/Biz/Bild
diff options
context:
space:
mode:
authorBen Sima <ben@bsima.me>2023-08-04 09:44:35 -0400
committerBen Sima <ben@bsima.me>2023-08-07 14:03:36 -0400
commitacee865bcf0131c10ed475b435af802ffe8dceee (patch)
tree2e546c4851d18e3ff16d3c9db077f3b67e819db9 /Biz/Bild
parent17ee23fa91f300b4b09b935aa65ec6593d7949b8 (diff)
Set BIZ_ROOT in nix builder
Diffstat (limited to 'Biz/Bild')
-rw-r--r--Biz/Bild/Builder.nix5
1 files changed, 3 insertions, 2 deletions
diff --git a/Biz/Bild/Builder.nix b/Biz/Bild/Builder.nix
index 9516ca1..04002d0 100644
--- a/Biz/Bild/Builder.nix
+++ b/Biz/Bild/Builder.nix
@@ -22,10 +22,11 @@ let
private.selectAttrs (lib.strings.splitString " " langDeps) pkgset
else
[];
-in stdenv.mkDerivation {
+in stdenv.mkDerivation rec {
inherit name buildPhase;
- buildInputs = [ (private.${packageSet} deps) ];
src = lib.sources.cleanSourceWith {inherit filter; src = lib.sources.cleanSource root;};
+ BIZ_ROOT = src;
+ buildInputs = [ (private.${packageSet} deps) ];
installPhase = ''
mkdir -p $out/bin && cp ${name} $out/bin
'';