shrub/nix/pkgs/pill/brass.nix

23 lines
543 B
Nix
Raw Normal View History

2022-04-05 19:26:44 +03:00
{ lib, stdenvNoCC, fetchGitHubLFS, bootFakeShip, solid, urbit, arvo, curl
, withRopsten ? false }:
let
lfs = fetchGitHubLFS { src = ../../../bin/brass.pill; };
in {
build = import ./builder.nix {
2022-04-05 19:26:44 +03:00
inherit stdenvNoCC urbit curl;
name = "brass" + lib.optionalString withRopsten "-ropsten";
builder = ./brass.sh;
arvo = if withRopsten then arvo.ropsten else arvo;
pier = bootFakeShip {
2022-04-05 19:26:44 +03:00
inherit urbit;
pill = solid.lfs;
ship = "zod";
};
};
} // lib.optionalAttrs (!withRopsten) { inherit lfs; }