mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-22 06:11:31 +03:00
36 lines
772 B
Nix
36 lines
772 B
Nix
{ env_name, env, deps }:
|
|
|
|
{
|
|
ent,
|
|
name ? "urbit",
|
|
debug ? false,
|
|
ge-additions
|
|
}:
|
|
|
|
let
|
|
|
|
crossdeps =
|
|
with env;
|
|
[ curl libgmp libsigsegv ncurses openssl zlib lmdb ];
|
|
|
|
vendor =
|
|
with deps;
|
|
[ argon2 softfloat3 ed25519 ge-additions h2o scrypt uv murmur3 secp256k1 sni ivory-header ca-header ];
|
|
|
|
in
|
|
|
|
env.make_derivation {
|
|
CFLAGS = if debug then "-O0 -g" else "-O3";
|
|
LDFLAGS = if debug then "" else "-s";
|
|
MEMORY_DEBUG = debug;
|
|
CPU_DEBUG = debug;
|
|
EVENT_TIME_DEBUG = false;
|
|
NCURSES = env.ncurses;
|
|
|
|
name = "${name}-${env_name}";
|
|
exename = name;
|
|
src = ../../../pkg/urbit;
|
|
cross_inputs = crossdeps ++ vendor ++ [ ent ];
|
|
builder = ./release.sh;
|
|
}
|