treewide: cmake buildInputs to nativeBuildInputs, minor cleanups
This commit is contained in:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user