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, fetchFromGitHub, autoconf, automake, libtool, pkgconfig, libxml2, deadbeef, glib, gtk3 }:
|
||||
{ lib, stdenv, fetchFromGitHub, autoconf, automake, libtool, pkgconfig, libxml2, deadbeef, glib, gtk3 }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "deadbeef-headerbar-gtk3-plugin";
|
||||
@@ -20,7 +20,7 @@ stdenv.mkDerivation rec {
|
||||
|
||||
preConfigure = "./autogen.sh";
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
meta = with lib; {
|
||||
description = "Plug-in that adds GTK 3 header bar to the DeaDBeeF music player";
|
||||
homepage = "https://github.com/saivert/ddb_misc_headerbar_GTK3";
|
||||
license = licenses.gpl2Plus;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{ stdenv, fetchurl, pkgconfig, deadbeef, gtk3, libxml2 }:
|
||||
{ lib, stdenv, fetchurl, pkgconfig, deadbeef, gtk3, libxml2 }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "deadbeef-infobar-plugin";
|
||||
@@ -23,7 +23,7 @@ stdenv.mkDerivation rec {
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
meta = with lib; {
|
||||
broken = true; # crashes DeaDBeeF and is abandoned (https://bitbucket.org/dsimbiriatin/deadbeef-infobar/issues/38/infobar-causes-deadbeef-180-to-crash)
|
||||
description = "DeaDBeeF Infobar Plugin";
|
||||
homepage = "https://bitbucket.org/dsimbiriatin/deadbeef-infobar";
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{ stdenv, fetchFromGitHub, pkgconfig, deadbeef, gtkmm3, libxmlxx3 }:
|
||||
{ lib, stdenv, fetchFromGitHub, pkgconfig, deadbeef, gtkmm3, libxmlxx3 }:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
pname = "deadbeef-lyricbar-plugin";
|
||||
@@ -16,7 +16,7 @@ stdenv.mkDerivation {
|
||||
|
||||
buildFlags = [ "gtk3" ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
meta = with lib; {
|
||||
description = "Plugin for DeaDBeeF audio player that fetches and shows the song’s lyrics";
|
||||
homepage = "https://github.com/C0rn3j/deadbeef-lyricbar";
|
||||
license = licenses.mit;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{ stdenv, fetchurl, pkgconfig, deadbeef, glib }:
|
||||
{ lib, stdenv, fetchurl, pkgconfig, deadbeef, glib }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "deadbeef-mpris2-plugin";
|
||||
@@ -13,7 +13,7 @@ stdenv.mkDerivation rec {
|
||||
|
||||
buildInputs = [ deadbeef glib ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
meta = with lib; {
|
||||
description = "MPRISv2 plugin for the DeaDBeeF music player";
|
||||
homepage = "https://github.com/Serranya/deadbeef-mpris2-plugin/";
|
||||
license = licenses.gpl2;
|
||||
|
||||
Reference in New Issue
Block a user