urbit/nix/ops/default.nix
Brendan Hay 578adc9363
build: move ops debug conditional usage to drv metadata
Rather than conditional reconstructing the "urbit/bin/urbit-debug -g"
string everytime using the debug conditional, this information has been
added to the derivation's .meta attribute.
2019-10-14 10:25:34 +02:00

62 lines
1.0 KiB
Nix

{ pkgs ? import ../nixpkgs.nix, debug ? false }:
let
tlon = import ../pkgs { inherit pkgs; };
arvo = tlon.arvo;
herb = tlon.herb;
urbit = if debug then tlon.urbit-debug else tlon.urbit;
bootbrass = ../../bin/brass.pill;
bootsolid = ../../bin/solid.pill;
rawzod = import ./fakeship {
inherit pkgs herb urbit;
pill = bootsolid;
ship = "zod";
arvo = null;
};
zod = import ./fakeship {
inherit pkgs herb urbit arvo;
pill = bootsolid;
ship = "zod";
};
bus = import ./fakeship {
inherit pkgs herb urbit arvo;
pill = bootsolid;
ship = "bus";
};
in
rec {
test = import ./test {
inherit pkgs herb urbit;
ship = bus;
};
solid = import ./solid {
inherit pkgs herb urbit arvo;
pier = rawzod;
};
brass = import ./brass {
inherit pkgs herb urbit arvo;
pier = zod;
};
ivory = import ./ivory {
inherit pkgs herb urbit arvo;
pier = zod;
};
image = import ./image {
inherit pkgs urbit;
pill = bootsolid;
};
}