mirror of
https://github.com/urbit/shrub.git
synced 2024-11-30 22:15:47 +03:00
build: force static urcrypt on darwin
This commit is contained in:
parent
fbea80467d
commit
b993ca2c25
@ -115,7 +115,7 @@ let
|
|||||||
|
|
||||||
urbit = callPackage ./nix/pkgs/urbit { inherit enableStatic; };
|
urbit = callPackage ./nix/pkgs/urbit { inherit enableStatic; };
|
||||||
|
|
||||||
urcrypt = callPackage ./nix/pkgs/urcrypt { };
|
urcrypt = callPackage ./nix/pkgs/urcrypt { inherit enableStatic; };
|
||||||
|
|
||||||
docker-image = callPackage ./nix/pkgs/docker-image { };
|
docker-image = callPackage ./nix/pkgs/docker-image { };
|
||||||
|
|
||||||
|
@ -1,9 +1,17 @@
|
|||||||
{ stdenv, autoreconfHook, pkgconfig, openssl, gmp, secp256k1, scrypt, libaes_siv }:
|
{ stdenv, autoreconfHook, pkgconfig, openssl, gmp, secp256k1, scrypt, libaes_siv
|
||||||
|
, enableStatic ? stdenv.hostPlatform.isStatic }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "urcrypt";
|
name = "urcrypt";
|
||||||
src = ../../../pkg/urcrypt;
|
src = ../../../pkg/urcrypt;
|
||||||
|
|
||||||
|
# XX why are these required for darwin?
|
||||||
|
dontDisableStatic = enableStatic;
|
||||||
|
|
||||||
|
configureFlags = if enableStatic
|
||||||
|
then [ "--disable-shared" "--enable-static" ]
|
||||||
|
else [];
|
||||||
|
|
||||||
nativeBuildInputs =
|
nativeBuildInputs =
|
||||||
[ autoreconfHook pkgconfig ];
|
[ autoreconfHook pkgconfig ];
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user