From e5a6175e044d69b8f598a2c2acb9bcfd77b9001c Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Mon, 21 Aug 2023 20:36:12 -0400 Subject: Refactor the build system for readability Lots of changes here but the code is much improved. The nix code is clearer and structured better. The Haskell code improved in response to the nix changes. I needed to use a qualified path instead of the abspath because the BIZ_ROOT changes based on whether bild runs in nix or runs in the user environment. Rather than passing every argument into Builder.nix, now I just pass the json from bild and deconstruct it in nix. This is obviously a much better design and it only came to be after sleeping on it the other night. --- shell.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'shell.nix') diff --git a/shell.nix b/shell.nix index dabf712..1db7442 100644 --- a/shell.nix +++ b/shell.nix @@ -1,3 +1,3 @@ (import ./Biz/Bild.nix { nixpkgs = import ./Biz/Bild/Nixpkgs.nix; -}).env +}).bild.env -- cgit v1.2.3