1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-22 21:50:55 +00:00

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";