mirror of
https://github.com/urbit/shrub.git
synced 2024-12-19 16:51:42 +03:00
22 lines
518 B
Nix
22 lines
518 B
Nix
{ stdenv, autoreconfHook, pkgconfig
|
|
, libaes_siv, openssl, openssl-static-osx, secp256k1
|
|
, 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 ];
|
|
|
|
propagatedBuildInputs =
|
|
[ openssl secp256k1 libaes_siv ];
|
|
}
|