2021-08-06 23:36:41 +03:00
|
|
|
{ stdenv, autoreconfHook, pkgconfig
|
|
|
|
, libaes_siv, openssl, secp256k1
|
2021-08-06 17:47:49 +03:00
|
|
|
, enableStatic ? stdenv.hostPlatform.isStatic }:
|
2020-07-28 05:19:17 +03:00
|
|
|
|
2021-08-20 03:03:19 +03:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "urcrypt";
|
|
|
|
src = ../../../pkg/urcrypt;
|
2020-07-28 05:19:17 +03:00
|
|
|
|
2021-08-06 17:47:49 +03:00
|
|
|
# XX why are these required for darwin?
|
|
|
|
dontDisableStatic = enableStatic;
|
|
|
|
|
|
|
|
configureFlags = if enableStatic
|
|
|
|
then [ "--disable-shared" "--enable-static" ]
|
|
|
|
else [];
|
|
|
|
|
2020-10-09 23:40:31 +03:00
|
|
|
nativeBuildInputs =
|
2021-08-20 03:03:19 +03:00
|
|
|
[ autoreconfHook pkgconfig ];
|
2020-10-09 23:40:31 +03:00
|
|
|
|
2021-08-07 00:02:35 +03:00
|
|
|
propagatedBuildInputs =
|
2021-08-06 23:36:41 +03:00
|
|
|
[ openssl secp256k1 libaes_siv ];
|
2020-07-28 05:19:17 +03:00
|
|
|
}
|