pkgs/development/libraries: stdenv.lib -> lib
This commit is contained in:
committed by
Jonathan Ringer
parent
046d24424e
commit
66e44425c6
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user