Merge pull request #63958 from bdesham/olm-on-darwin
olm: Allow building on Darwin
This commit is contained in:
commit
863bc6ed94
3 changed files with 11 additions and 1 deletions
|
@ -42,5 +42,9 @@ stdenv.mkDerivation {
|
|||
maintainers = with maintainers; [ ma27 ];
|
||||
license = licenses.mit; # see https://github.com/torhve/weechat-matrix-protocol-script/blob/0052e7275ae149dc5241226391c9b1889ecc3c6b/matrix.lua#L53
|
||||
platforms = platforms.unix;
|
||||
|
||||
# As of 2019-06-30, all of the dependencies are available on macOS but the
|
||||
# package itself does not build.
|
||||
broken = stdenv.isDarwin;
|
||||
};
|
||||
}
|
||||
|
|
|
@ -27,5 +27,9 @@ stdenv.mkDerivation rec {
|
|||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ fpletz ];
|
||||
platforms = platforms.unix;
|
||||
|
||||
# As of 2019-06-30, all of the dependencies are available on macOS but the
|
||||
# package itself does not build.
|
||||
broken = stdenv.isDarwin;
|
||||
};
|
||||
}
|
||||
|
|
|
@ -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)";
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue