mirror of
https://github.com/urbit/shrub.git
synced 2024-11-28 05:22:27 +03:00
496e62e01d
This translates the meson build to nix. Previously, we had our ge-additions package just manually compiled in instead of having its own file.
29 lines
699 B
Nix
29 lines
699 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;
|
|
};
|
|
|
|
urbit = mkUrbit { debug=false; };
|
|
urbit-debug = mkUrbit { debug=true; };
|
|
|
|
in
|
|
|
|
{ inherit ent ge-additions arvo herb urbit urbit-debug; }
|