treewide: remove use of deprecated stdenv.lib
This commit is contained in:
parent
6ba5880b2c
commit
4cddf284e9
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, fetchurl, pkgconfig, curl, libev, sqlite }:
|
{ lib, stdenv, fetchurl, pkgconfig, curl, libev, sqlite }:
|
||||||
|
|
||||||
let
|
let
|
||||||
curlWithGnuTLS = curl.override { gnutlsSupport = true; sslSupport = false; };
|
curlWithGnuTLS = curl.override { gnutlsSupport = true; sslSupport = false; };
|
||||||
@ -16,7 +16,7 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with lib; {
|
||||||
description = "Automated C-Lightning Node Manager";
|
description = "Automated C-Lightning Node Manager";
|
||||||
homepage = "https://github.com/ZmnSCPxj/clboss";
|
homepage = "https://github.com/ZmnSCPxj/clboss";
|
||||||
maintainers = with maintainers; [ nixbitcoin ];
|
maintainers = with maintainers; [ nixbitcoin ];
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
{ stdenv, fetchurl, pkgconfig, autoreconfHook, openssl, db48, boost, zeromq, rapidcheck
|
{ lib, stdenv, fetchurl, pkgconfig, autoreconfHook, openssl, db48, boost, zeromq, rapidcheck
|
||||||
, zlib, miniupnpc, qtbase ? null, qttools ? null, wrapQtAppsHook ? null, utillinux, protobuf, python3, qrencode, libevent
|
, zlib, miniupnpc, qtbase ? null, qttools ? null, wrapQtAppsHook ? null, utillinux, protobuf, python3, qrencode, libevent
|
||||||
, withGui }:
|
, withGui }:
|
||||||
|
|
||||||
with stdenv.lib;
|
with lib;
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "elements${optionalString (!withGui) "d"}";
|
pname = "elements${optionalString (!withGui) "d"}";
|
||||||
version = "0.18.1.9";
|
version = "0.18.1.9";
|
||||||
|
@ -1,6 +1,4 @@
|
|||||||
{ pkgs, stdenv, fetchurl, fetchFromGitHub, python3 }:
|
{ lib, pkgs, stdenv, fetchurl, fetchFromGitHub, python3 }:
|
||||||
|
|
||||||
with stdenv.lib;
|
|
||||||
|
|
||||||
let
|
let
|
||||||
python = python3.override {
|
python = python3.override {
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
{ stdenv
|
{ lib
|
||||||
|
, stdenv
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchPypi
|
, fetchPypi
|
||||||
, pkgs
|
, pkgs
|
||||||
@ -18,7 +19,7 @@ buildPythonPackage rec {
|
|||||||
# Only needed for tests
|
# Only needed for tests
|
||||||
checkInputs = [ pkgs.openssl ];
|
checkInputs = [ pkgs.openssl ];
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with lib; {
|
||||||
description = "ECDSA cryptographic signature library";
|
description = "ECDSA cryptographic signature library";
|
||||||
homepage = "https://github.com/warner/python-ecdsa";
|
homepage = "https://github.com/warner/python-ecdsa";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, libusb1, udev, darwin, fetchPypi, buildPythonPackage, cython }:
|
{ lib, stdenv, libusb1, udev, darwin, fetchPypi, buildPythonPackage, cython }:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "hidapi";
|
pname = "hidapi";
|
||||||
@ -10,18 +10,18 @@ buildPythonPackage rec {
|
|||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs =
|
propagatedBuildInputs =
|
||||||
stdenv.lib.optionals stdenv.isLinux [ libusb1 udev ] ++
|
lib.optionals stdenv.isLinux [ libusb1 udev ] ++
|
||||||
stdenv.lib.optionals stdenv.isDarwin [ darwin.IOKit darwin.apple_sdk.frameworks.CoreFoundation ] ++
|
lib.optionals stdenv.isDarwin [ darwin.IOKit darwin.apple_sdk.frameworks.CoreFoundation ] ++
|
||||||
[ cython ];
|
[ cython ];
|
||||||
|
|
||||||
# Fix the USB backend library lookup
|
# Fix the USB backend library lookup
|
||||||
postPatch = stdenv.lib.optionalString stdenv.isLinux ''
|
postPatch = lib.optionalString stdenv.isLinux ''
|
||||||
libusb=${libusb1.dev}/include/libusb-1.0
|
libusb=${libusb1.dev}/include/libusb-1.0
|
||||||
test -d $libusb || { echo "ERROR: $libusb doesn't exist, please update/fix this build expression."; exit 1; }
|
test -d $libusb || { echo "ERROR: $libusb doesn't exist, please update/fix this build expression."; exit 1; }
|
||||||
sed -i -e "s|/usr/include/libusb-1.0|$libusb|" setup.py
|
sed -i -e "s|/usr/include/libusb-1.0|$libusb|" setup.py
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with lib; {
|
||||||
description = "A Cython interface to the hidapi from https://github.com/signal11/hidapi";
|
description = "A Cython interface to the hidapi from https://github.com/signal11/hidapi";
|
||||||
homepage = "https://github.com/trezor/cython-hidapi";
|
homepage = "https://github.com/trezor/cython-hidapi";
|
||||||
# license can actually be either bsd3 or gpl3
|
# license can actually be either bsd3 or gpl3
|
||||||
|
@ -1,6 +1,4 @@
|
|||||||
{ stdenv, fetchFromGitHub, autoreconfHook }:
|
{ lib, stdenv, fetchFromGitHub, autoreconfHook }:
|
||||||
|
|
||||||
let inherit (stdenv.lib) optionals; in
|
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
pname = "secp256k1";
|
pname = "secp256k1";
|
||||||
@ -18,7 +16,7 @@ stdenv.mkDerivation {
|
|||||||
|
|
||||||
configureFlags = ["--enable-module-recovery" "--disable-jni" "--enable-experimental" "--enable-module-ecdh" "--enable-benchmark=no" ];
|
configureFlags = ["--enable-module-recovery" "--disable-jni" "--enable-experimental" "--enable-module-ecdh" "--enable-benchmark=no" ];
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with lib; {
|
||||||
description = "Optimized C library for EC operations on curve secp256k1";
|
description = "Optimized C library for EC operations on curve secp256k1";
|
||||||
homepage = "https://github.com/bitcoin-core/secp256k1";
|
homepage = "https://github.com/bitcoin-core/secp256k1";
|
||||||
license = with licenses; [ mit ];
|
license = with licenses; [ mit ];
|
||||||
|
Loading…
Reference in New Issue
Block a user