summaryrefslogtreecommitdiffstats
path: root/pkgs/applications/search
diff options
context:
space:
mode:
authorProfpatsch <mail@profpatsch.de>2021-01-11 08:54:33 +0100
committerProfpatsch <mail@profpatsch.de>2021-01-11 10:38:22 +0100
commit4a7f99d55d299453a9c2397f90b33d1120669775 (patch)
tree9fca8e9c9970d0a00ce56dfe11b63ae76b00cf01 /pkgs/applications/search
parente87aef06e00c42b26789321454d7bd609548cc12 (diff)
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
Diffstat (limited to 'pkgs/applications/search')
-rw-r--r--pkgs/applications/search/grepcidr/default.nix4
-rw-r--r--pkgs/applications/search/grepm/default.nix4
-rw-r--r--pkgs/applications/search/recoll/default.nix2
3 files changed, 5 insertions, 5 deletions
diff --git a/pkgs/applications/search/grepcidr/default.nix b/pkgs/applications/search/grepcidr/default.nix
index 125e67938ecd..bdc660db45fc 100644
--- a/pkgs/applications/search/grepcidr/default.nix
+++ b/pkgs/applications/search/grepcidr/default.nix
@@ -1,4 +1,4 @@
-{ stdenv, fetchurl }:
+{ lib, stdenv, fetchurl }:
stdenv.mkDerivation rec {
pname = "grepcidr";
@@ -11,7 +11,7 @@ stdenv.mkDerivation rec {
installFlags = [ "PREFIX=$(out)" ];
- meta = with stdenv.lib; {
+ meta = with lib; {
description = "Filter IPv4 and IPv6 addresses matching CIDR patterns";
homepage = "http://www.pc-tools.net/unix/grepcidr/";
license = licenses.gpl3;
diff --git a/pkgs/applications/search/grepm/default.nix b/pkgs/applications/search/grepm/default.nix
index d03d26d00004..7fef36d910ee 100644
--- a/pkgs/applications/search/grepm/default.nix
+++ b/pkgs/applications/search/grepm/default.nix
@@ -1,4 +1,4 @@
-{ stdenv, fetchurl, perlPackages, mutt }:
+{ lib, stdenv, fetchurl, perlPackages, mutt }:
stdenv.mkDerivation {
pname = "grepm";
@@ -23,7 +23,7 @@ stdenv.mkDerivation {
$out/bin/grepm
'';
- meta = with stdenv.lib; {
+ meta = with lib; {
description = "Wrapper for grepmail utilizing mutt";
homepage = "http://www.barsnick.net/sw/grepm.html";
license = licenses.free;
diff --git a/pkgs/applications/search/recoll/default.nix b/pkgs/applications/search/recoll/default.nix
index 4939fcf56627..6d6f58fb5e20 100644
--- a/pkgs/applications/search/recoll/default.nix
+++ b/pkgs/applications/search/recoll/default.nix
@@ -91,7 +91,7 @@ mkDerivation rec {
enableParallelBuilding = true;
- meta = with stdenv.lib; {
+ meta = with lib; {
description = "A full-text search tool";
longDescription = ''
Recoll is an Xapian frontend that can search through files, archive