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 }:
|
||||
{ lib, stdenv, fetchurl }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "tt-rss";
|
||||
@@ -15,7 +15,7 @@ stdenv.mkDerivation rec {
|
||||
cp -ra * $out/
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
meta = with lib; {
|
||||
description = "Web-based news feed (RSS/Atom) aggregator";
|
||||
license = licenses.gpl2Plus;
|
||||
homepage = "https://tt-rss.org";
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{ stdenv, fetchFromGitHub, fetchpatch }:
|
||||
{ lib, stdenv, fetchFromGitHub, fetchpatch }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "tt-rss-plugin-auth-ldap";
|
||||
@@ -22,7 +22,7 @@ stdenv.mkDerivation rec {
|
||||
install -D plugins/auth_ldap/init.php $out/auth_ldap/init.php
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
meta = with lib; {
|
||||
description = "Plugin for TT-RSS to authenticate users via ldap";
|
||||
license = licenses.asl20;
|
||||
homepage = "https://github.com/hydrian/TTRSS-Auth-LDAP";
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{ stdenv, fetchFromGitHub, ... }: stdenv.mkDerivation {
|
||||
{ lib, stdenv, fetchFromGitHub, ... }: stdenv.mkDerivation {
|
||||
pname = "tt-rss-plugin-ff-instagram";
|
||||
version = "git-2019-01-10"; # No release, see https://github.com/wltb/ff_instagram/issues/6
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
cp *.php $out/ff_instagram
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
meta = with lib; {
|
||||
description = "Plugin for Tiny Tiny RSS that allows to fetch posts from Instagram user sites";
|
||||
longDescription = ''
|
||||
Plugin for Tiny Tiny RSS that allows to fetch posts from Instagram user sites.
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{ stdenv, fetchFromGitHub, ... }: stdenv.mkDerivation rec {
|
||||
{ lib, stdenv, fetchFromGitHub, ... }: stdenv.mkDerivation rec {
|
||||
pname = "tt-rss-plugin-tumblr-gdpr";
|
||||
version = "2.1";
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
cp init.php $out/tumblr_gdpr
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
meta = with lib; {
|
||||
description = "Plugin for TT-RSS to workaround GDPR in Europe";
|
||||
longDescription = ''
|
||||
Plugin for TT-RSS to workaround GDPR in Europe.
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{ stdenv, fetchFromGitHub }: stdenv.mkDerivation rec {
|
||||
{ lib, stdenv, fetchFromGitHub }: stdenv.mkDerivation rec {
|
||||
pname = "tt-rss-theme-feedly";
|
||||
version = "2.5.0";
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
cp -ra feedly *.css $out
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
meta = with lib; {
|
||||
description = "Feedly theme for Tiny Tiny RSS";
|
||||
license = licenses.wtfpl;
|
||||
homepage = "https://github.com/levito/tt-rss-feedly-theme";
|
||||
|
||||
Reference in New Issue
Block a user