treewide: cmake buildInputs to nativeBuildInputs, minor cleanups

This commit is contained in:
Ben Siraphob
2021-01-01 11:52:33 +07:00
parent 54ab07c1fe
commit b04fc593e7
212 changed files with 611 additions and 634 deletions
@@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, cmake, pkgconfig, openssl, boost, gmp, procps }:
{ stdenv, fetchFromGitHub, cmake, pkg-config, openssl, boost, gmp, procps }:
let
rev = "9e6b19ff15bc19fba5da1707ba18e7f160e5ed07";
@@ -7,7 +7,8 @@ in stdenv.mkDerivation rec {
name = "libsnark-pre${version}";
version = stdenv.lib.substring 0 8 rev;
buildInputs = [ cmake pkgconfig openssl boost gmp ] ++ lib.optional stdenv.hostPlatform.isLinux procps;
nativeBuildInputs = [ cmake pkg-config ];
buildInputs = [ openssl boost gmp ] ++ lib.optional stdenv.hostPlatform.isLinux procps;
cmakeFlags = lib.optionals stdenv.hostPlatform.isDarwin [ "-DWITH_PROCPS=OFF" "-DWITH_SUPERCOP=OFF" ];
@@ -19,8 +20,6 @@ in stdenv.mkDerivation rec {
fetchSubmodules = true;
};
enableParallelBuilding = true;
meta = with stdenv.lib; {
description = "C++ library for zkSNARKs";
homepage = "https://github.com/scipr-lab/libsnark";