mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-15 10:02:47 +03:00
39 lines
991 B
Nix
39 lines
991 B
Nix
{ pkgs ? import ../nixpkgs.nix }:
|
|
|
|
let
|
|
|
|
deps = import ../deps { inherit pkgs; };
|
|
|
|
ent = import ./ent { inherit pkgs; };
|
|
arvo = import ./arvo { inherit pkgs; };
|
|
herb = import ../../pkg/herb { inherit pkgs; };
|
|
|
|
ge-additions = import ./ge-additions {
|
|
inherit pkgs;
|
|
inherit (deps) ed25519;
|
|
};
|
|
|
|
mkUrbit = { debug }:
|
|
import ./urbit {
|
|
inherit pkgs ent debug ge-additions;
|
|
inherit (deps) argon2 murmur3 uv ed25519 sni scrypt softfloat3;
|
|
inherit (deps) secp256k1 h2o ivory-header ca-header;
|
|
};
|
|
|
|
urbit = mkUrbit { debug = false; };
|
|
urbit-debug = mkUrbit { debug = true; };
|
|
|
|
mkImage = { debug }:
|
|
import ./urbit/image.nix {
|
|
inherit pkgs;
|
|
|
|
urbit = if debug then urbit-debug else urbit;
|
|
};
|
|
|
|
urbit-image = mkImage { debug = false; };
|
|
urbit-image-debug = mkImage { debug = true; };
|
|
|
|
in
|
|
|
|
{ inherit ent ge-additions arvo herb urbit urbit-debug urbit-image urbit-image-debug; }
|