diff options
author | Ben Sima <ben@bsima.me> | 2021-04-15 20:23:35 -0400 |
---|---|---|
committer | Ben Sima <ben@bsima.me> | 2021-11-26 13:47:15 -0500 |
commit | 7870a19fa4de5a478aec7e071f18cdaaefe7d5f4 (patch) | |
tree | 4cd20ef0cef7f5a7559aefc4d1e6b102cca821b3 /Biz | |
parent | 9975f0541df53c0aa4de16d70e8149e00d3973d1 (diff) |
Remove required nix arguments
This allows us to use nix-build as a check that bild is working.
I think bild sometimes hangs because it doesn't get input from nix-build? I'm
not sure, but one workaround is to run nix-build on the target, and then bild
will just get the cached build.
Diffstat (limited to 'Biz')
-rw-r--r-- | Biz/Bild.hs | 12 | ||||
-rw-r--r-- | Biz/Bild/Rules.nix | 2 | ||||
-rw-r--r-- | Biz/Cloud.nix | 2 | ||||
-rw-r--r-- | Biz/Dev.nix | 2 | ||||
-rw-r--r-- | Biz/Pie.nix | 3 | ||||
-rw-r--r-- | Biz/Que/Prod.nix | 6 |
6 files changed, 9 insertions, 18 deletions
diff --git a/Biz/Bild.hs b/Biz/Bild.hs index eee7eb4..cba6539 100644 --- a/Biz/Bild.hs +++ b/Biz/Bild.hs @@ -440,18 +440,6 @@ build andTest loud Target {..} = do [ path, "-o", outDir </> Namespace.toPath namespace, - -- Set default arguments to nix functions - "--arg", - "bild", - "import " <> root - </> "Biz/Bild/Rules.nix" - <> " { nixpkgs = import " - <> root - </> "Biz/Bild/Nixpkgs.nix" - <> "; }", - "--arg", - "lib", - "(import " <> root </> "Biz/Bild/Nixpkgs.nix).lib", "--builders", Text.unpack builder ] diff --git a/Biz/Bild/Rules.nix b/Biz/Bild/Rules.nix index 800f1df..afea746 100644 --- a/Biz/Bild/Rules.nix +++ b/Biz/Bild/Rules.nix @@ -1,4 +1,4 @@ -{ nixpkgs }: +{ nixpkgs ? import ./Nixpkgs.nix }: with nixpkgs; diff --git a/Biz/Cloud.nix b/Biz/Cloud.nix index c70c0ad..5bcb0a1 100644 --- a/Biz/Cloud.nix +++ b/Biz/Cloud.nix @@ -1,4 +1,4 @@ -{ bild }: +{ bild ? import ./Bild/Rules.nix {} }: # Cloud infrastructure, always online. Mostly for messaging-related stuff. diff --git a/Biz/Dev.nix b/Biz/Dev.nix index f372484..ab78b44 100644 --- a/Biz/Dev.nix +++ b/Biz/Dev.nix @@ -1,4 +1,4 @@ -{ bild }: +{ bild ? import ./Bild/Rules.nix {} }: # Dev machine for work and building stuff. diff --git a/Biz/Pie.nix b/Biz/Pie.nix index 70e2f23..de7cf20 100644 --- a/Biz/Pie.nix +++ b/Biz/Pie.nix @@ -1 +1,2 @@ -{ bild }: bild.ghc ./Pie.hs +{ bild ? import ./Bild/Rules.nix {} }: +bild.ghc ./Pie.hs diff --git a/Biz/Que/Prod.nix b/Biz/Que/Prod.nix index 12da1eb..70272ae 100644 --- a/Biz/Que/Prod.nix +++ b/Biz/Que/Prod.nix @@ -1,4 +1,6 @@ -{ bild, lib }: +{ bild ? import ../Bild/Rules.nix {} +, nixpkgs ? import ../Bild/Nixpkgs.nix +}: # The production server for que.run @@ -31,7 +33,7 @@ bild.os { defaultGateway = "157.245.224.1"; defaultGateway6 = "2604:a880:2:d1::1"; dhcpcd.enable = false; - usePredictableInterfaceNames = lib.mkForce true; + usePredictableInterfaceNames = nixpkgs.lib.mkForce true; interfaces = { eth0 = { ipv4.addresses = [ |