shrub/nix/pkgs/urcrypt/default.nix

22 lines
518 B
Nix
Raw Normal View History

{ stdenv, autoreconfHook, pkgconfig
2022-05-24 18:28:39 +03:00
, libaes_siv, openssl, openssl-static-osx, secp256k1
2021-08-06 17:47:49 +03:00
, enableStatic ? stdenv.hostPlatform.isStatic }:
stdenv.mkDerivation rec {
name = "urcrypt";
src = ../../../pkg/urcrypt;
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 [];
nativeBuildInputs =
[ autoreconfHook pkgconfig ];
propagatedBuildInputs =
[ openssl secp256k1 libaes_siv ];
}