mirror of
https://github.com/urbit/shrub.git
synced 2024-12-22 10:21:31 +03:00
21 lines
511 B
Nix
21 lines
511 B
Nix
{ stdenv, autoreconfHook, pkgconfig, openssl, gmp, secp256k1, scrypt, libaes_siv
|
|
, enableStatic ? stdenv.hostPlatform.isStatic }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "urcrypt";
|
|
src = ../../../pkg/urcrypt;
|
|
|
|
# XX why are these required for darwin?
|
|
dontDisableStatic = enableStatic;
|
|
|
|
configureFlags = if enableStatic
|
|
then [ "--disable-shared" "--enable-static" ]
|
|
else [];
|
|
|
|
nativeBuildInputs =
|
|
[ autoreconfHook pkgconfig ];
|
|
|
|
buildInputs =
|
|
[ openssl gmp secp256k1 scrypt libaes_siv ];
|
|
}
|