olm: allow building on Darwin
This commit is contained in:
parent
eea33299ff
commit
33c5f3cec7
|
@ -8,7 +8,7 @@ stdenv.mkDerivation rec {
|
||||||
description = "Implements double cryptographic ratchet and Megolm ratchet";
|
description = "Implements double cryptographic ratchet and Megolm ratchet";
|
||||||
license = stdenv.lib.licenses.asl20;
|
license = stdenv.lib.licenses.asl20;
|
||||||
homepage = https://matrix.org/git/olm/about;
|
homepage = https://matrix.org/git/olm/about;
|
||||||
platforms = stdenv.lib.platforms.linux;
|
platforms = with stdenv.lib.platforms; darwin ++ linux;
|
||||||
};
|
};
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
|
@ -22,5 +22,7 @@ stdenv.mkDerivation rec {
|
||||||
# requires optimisation but memory operations are compiled with -O0
|
# requires optimisation but memory operations are compiled with -O0
|
||||||
hardeningDisable = ["fortify"];
|
hardeningDisable = ["fortify"];
|
||||||
|
|
||||||
|
makeFlags = if stdenv.cc.isClang then [ "CC=cc" ] else null;
|
||||||
|
|
||||||
installFlags = "PREFIX=$(out)";
|
installFlags = "PREFIX=$(out)";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue