olm: build w/cmake, simplify expression (somewhat optimistically)

This commit is contained in:
Will Dietz 2020-01-07 17:01:53 -06:00
parent 1e3ac89095
commit 7d52215f14
No known key found for this signature in database
GPG Key ID: EBB0EA4124809D02

View File

@ -1,4 +1,4 @@
{ stdenv, fetchurl }:
{ stdenv, fetchurl, cmake }:
stdenv.mkDerivation rec {
pname = "olm";
@ -9,17 +9,9 @@ stdenv.mkDerivation rec {
sha256 = "0f7azjxc77n4ib9nj3cwyk3vhk8r2dsyf7id6nvqyxqxwxn95a8w";
};
nativeBuildInputs = [ cmake ];
doCheck = true;
checkTarget = "test";
# requires optimisation but memory operations are compiled with -O0
hardeningDisable = ["fortify"];
makeFlags = stdenv.lib.optional stdenv.cc.isClang "CC=cc";
installFlags = [
"PREFIX=${placeholder ''out''}"
];
meta = {
description = "Implements double cryptographic ratchet and Megolm ratchet";