pkgs/development/libraries: stdenv.lib -> lib

This commit is contained in:
Ben Siraphob
2021-01-22 00:00:13 +07:00
committed by Jonathan Ringer
parent 046d24424e
commit 66e44425c6
1770 changed files with 4913 additions and 4912 deletions

View File

@@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, cmake, boost, gmp, openssl, pkg-config }:
{ lib, stdenv, fetchFromGitHub, cmake, boost, gmp, openssl, pkg-config }:
stdenv.mkDerivation rec {
pname = "libff";
@@ -16,14 +16,14 @@ stdenv.mkDerivation rec {
# CMake is hardcoded to always build static library which causes linker
# failure for Haskell applications depending on haskellPackages.hevm on macOS.
postPatch = stdenv.lib.optionalString stdenv.isDarwin ''
postPatch = lib.optionalString stdenv.isDarwin ''
substituteInPlace libff/CMakeLists.txt --replace "STATIC" "SHARED"
'';
nativeBuildInputs = [ cmake pkg-config ];
buildInputs = [ boost gmp openssl ];
meta = with stdenv.lib; {
meta = with lib; {
description = "C++ library for Finite Fields and Elliptic Curves";
changelog = "https://github.com/scipr-lab/libff/blob/develop/CHANGELOG.md";
homepage = "https://github.com/scipr-lab/libff";