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:
Profpatsch
2021-01-11 10:38:22 +01:00
parent e87aef06e0
commit 4a7f99d55d
6869 changed files with 13585 additions and 13580 deletions
@@ -1,4 +1,4 @@
{ stdenv, fetchgit, pkgconfig, linkFarm, lightdm-enso-os-greeter
{ lib, stdenv, fetchgit, pkgconfig, linkFarm, lightdm-enso-os-greeter
, dbus, pcre, epoxy, libXdmcp, at-spi2-core, libxklavier, libxkbcommon, libpthreadstubs
, gtk3, vala, cmake, libgee, libX11, lightdm, gdk-pixbuf, clutter-gtk, wrapGAppsHook, librsvg }:
@@ -55,7 +55,7 @@ stdenv.mkDerivation {
--replace "pantheon-greeter" "$out/bin/pantheon-greeter"
'';
meta = with stdenv.lib; {
meta = with lib; {
description = ''
A fork of pantheon greeter that positions elements in a central and
vertigal manner and adds a blur effect to the background
@@ -1,4 +1,4 @@
{ stdenv, linkFarm, lightdm-mini-greeter, fetchFromGitHub, autoreconfHook, pkgconfig, lightdm, gtk3, glib, gdk-pixbuf, wrapGAppsHook, librsvg }:
{ lib, stdenv, linkFarm, lightdm-mini-greeter, fetchFromGitHub, autoreconfHook, pkgconfig, lightdm, gtk3, glib, gdk-pixbuf, wrapGAppsHook, librsvg }:
stdenv.mkDerivation rec {
pname = "lightdm-mini-greeter";
@@ -27,7 +27,7 @@ stdenv.mkDerivation rec {
name = "lightdm-mini-greeter.desktop";
}];
meta = with stdenv.lib; {
meta = with lib; {
description = "A minimal, configurable, single-user GTK3 LightDM greeter";
homepage = "https://github.com/prikhi/lightdm-mini-greeter";
license = licenses.gpl3;
@@ -1,4 +1,4 @@
{ stdenv, linkFarm, lightdm-tiny-greeter, fetchFromGitHub
{ lib, stdenv, linkFarm, lightdm-tiny-greeter, fetchFromGitHub
, pkgconfig, lightdm, gtk3, glib, wrapGAppsHook, conf ? "" }:
stdenv.mkDerivation rec {
@@ -36,7 +36,7 @@ stdenv.mkDerivation rec {
name = "lightdm-tiny-greeter.desktop";
}];
meta = with stdenv.lib; {
meta = with lib; {
description = "A tiny multi user lightdm greeter";
homepage = "https://github.com/off-world/lightdm-tiny-greeter";
license = licenses.bsd3;
@@ -1,4 +1,4 @@
{ stdenv
{ lib, stdenv
, lightdm_gtk_greeter
, fetchurl
, lightdm
@@ -63,7 +63,7 @@ stdenv.mkDerivation rec {
name = "lightdm-gtk-greeter.desktop";
}];
meta = with stdenv.lib; {
meta = with lib; {
homepage = "https://launchpad.net/lightdm-gtk-greeter";
platforms = platforms.linux;
license = licenses.gpl3;