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, fetchgit, libmowgli, pkgconfig, git, gettext, pcre, libidn, cracklib, openssl }:
|
||||
{ lib, stdenv, fetchgit, libmowgli, pkgconfig, git, gettext, pcre, libidn, cracklib, openssl }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "atheme";
|
||||
@@ -23,7 +23,7 @@ stdenv.mkDerivation rec {
|
||||
"--enable-reproducible-builds"
|
||||
];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
meta = with lib; {
|
||||
description = "A set of services for IRC networks";
|
||||
homepage = "https://atheme.github.io/";
|
||||
license = licenses.isc;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{ stdenv, fetchFromGitHub, autoreconfHook, bison, flex, openssl, gnutls }:
|
||||
{ lib, stdenv, fetchFromGitHub, autoreconfHook, bison, flex, openssl, gnutls }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "charybdis-4.1.2";
|
||||
@@ -26,7 +26,7 @@ stdenv.mkDerivation rec {
|
||||
nativeBuildInputs = [ autoreconfHook bison flex ];
|
||||
buildInputs = [ openssl gnutls ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
meta = with lib; {
|
||||
description = "IRCv3 server designed to be highly scalable";
|
||||
homepage = "https://github.com/charybdis-ircd/charybdis";
|
||||
license = licenses.gpl2;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{ stdenv, buildGoModule, fetchFromGitHub, nixosTests }:
|
||||
{ lib, stdenv, buildGoModule, fetchFromGitHub, nixosTests }:
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "robustirc-bridge";
|
||||
@@ -19,7 +19,7 @@ buildGoModule rec {
|
||||
|
||||
passthru.tests.robustirc-bridge = nixosTests.robustirc-bridge;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
meta = with lib; {
|
||||
description = "Bridge to robustirc.net-IRC-Network";
|
||||
homepage = "https://robustirc.net/";
|
||||
license = licenses.bsd3;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{ stdenv
|
||||
{ lib, stdenv
|
||||
, fetchFromGitHub
|
||||
, autoreconfHook
|
||||
, pkg-config
|
||||
@@ -50,7 +50,7 @@ stdenv.mkDerivation rec {
|
||||
|
||||
doCheck = !stdenv.isDarwin;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
meta = with lib; {
|
||||
description = "An IRCd for unified networks";
|
||||
homepage = "https://github.com/solanum-ircd/solanum";
|
||||
license = licenses.gpl2Only;
|
||||
|
||||
Reference in New Issue
Block a user