diff options
author | Benjamin Esham <benjamin@esham.io> | 2019-07-01 13:13:22 -0400 |
---|---|---|
committer | Benjamin Esham <benjamin@esham.io> | 2019-07-01 13:15:49 -0400 |
commit | 33c5f3cec7456a07ecfdab1a1fb05919701e1346 (patch) | |
tree | f3ba70438fd5ca75cad9dd3c64d7dbd2a15dfe12 /pkgs/development/libraries/olm | |
parent | eea33299ff73cb3428bf043b6df37e504a238712 (diff) |
olm: allow building on Darwin
Diffstat (limited to 'pkgs/development/libraries/olm')
-rw-r--r-- | pkgs/development/libraries/olm/default.nix | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pkgs/development/libraries/olm/default.nix b/pkgs/development/libraries/olm/default.nix index 4749efb5f0067..49daff30e7b56 100644 --- a/pkgs/development/libraries/olm/default.nix +++ b/pkgs/development/libraries/olm/default.nix @@ -8,7 +8,7 @@ stdenv.mkDerivation rec { description = "Implements double cryptographic ratchet and Megolm ratchet"; license = stdenv.lib.licenses.asl20; homepage = https://matrix.org/git/olm/about; - platforms = stdenv.lib.platforms.linux; + platforms = with stdenv.lib.platforms; darwin ++ linux; }; src = fetchurl { @@ -22,5 +22,7 @@ stdenv.mkDerivation rec { # requires optimisation but memory operations are compiled with -O0 hardeningDisable = ["fortify"]; + makeFlags = if stdenv.cc.isClang then [ "CC=cc" ] else null; + installFlags = "PREFIX=$(out)"; } |