treewide: with stdenv.lib; in meta -> with lib;
Part of: https://github.com/NixOS/nixpkgs/issues/108938 meta = with stdenv.lib; is a widely used pattern. We want to slowly remove the `stdenv.lib` indirection and encourage people to use `lib` directly. Thus let’s start with the meta field. This used a rewriting script to mostly automatically replace all occurances of this pattern, and add the `lib` argument to the package header if it doesn’t exist yet. The script in its current form is available at https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
{ stdenv, fetchurl, autoconf, automake, libtool, bison
|
||||
{ lib, stdenv, fetchurl, autoconf, automake, libtool, bison
|
||||
, libasr, libevent, zlib, libressl, db, pam, nixosTests
|
||||
}:
|
||||
|
||||
@@ -49,7 +49,7 @@ stdenv.mkDerivation rec {
|
||||
"localstatedir=\${TMPDIR}"
|
||||
];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
meta = with lib; {
|
||||
homepage = "https://www.opensmtpd.org/";
|
||||
description = ''
|
||||
A free implementation of the server-side SMTP protocol as defined by
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{ stdenv, fetchurl, openssl, libevent, libasr,
|
||||
{ lib, stdenv, fetchurl, openssl, libevent, libasr,
|
||||
python2, pkgconfig, lua5, perl, libmysqlclient, postgresql, sqlite, hiredis,
|
||||
enablePython ? true,
|
||||
enableLua ? true,
|
||||
@@ -81,7 +81,7 @@ stdenv.mkDerivation rec {
|
||||
+ stdenv.lib.optionalString enableMysql
|
||||
" -L${libmysqlclient}/lib/mysql";
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
meta = with lib; {
|
||||
homepage = "https://www.opensmtpd.org/";
|
||||
description = "Extra plugins for the OpenSMTPD mail server";
|
||||
license = licenses.isc;
|
||||
|
||||
Reference in New Issue
Block a user