diff options
author | Profpatsch <mail@profpatsch.de> | 2021-01-11 08:54:33 +0100 |
---|---|---|
committer | Profpatsch <mail@profpatsch.de> | 2021-01-11 10:38:22 +0100 |
commit | 4a7f99d55d299453a9c2397f90b33d1120669775 (patch) | |
tree | 9fca8e9c9970d0a00ce56dfe11b63ae76b00cf01 /pkgs/applications/editors/kakoune | |
parent | e87aef06e00c42b26789321454d7bd609548cc12 (diff) | |
download | nixpkgs-4a7f99d55d299453a9c2397f90b33d1120669775.tar nixpkgs-4a7f99d55d299453a9c2397f90b33d1120669775.tar.gz nixpkgs-4a7f99d55d299453a9c2397f90b33d1120669775.tar.bz2 nixpkgs-4a7f99d55d299453a9c2397f90b33d1120669775.tar.lz nixpkgs-4a7f99d55d299453a9c2397f90b33d1120669775.tar.xz nixpkgs-4a7f99d55d299453a9c2397f90b33d1120669775.tar.zst nixpkgs-4a7f99d55d299453a9c2397f90b33d1120669775.zip |
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/editors/kakoune')
4 files changed, 8 insertions, 8 deletions
diff --git a/pkgs/applications/editors/kakoune/plugins/case.kak.nix b/pkgs/applications/editors/kakoune/plugins/case.kak.nix index 6a2ef200e6e..3fa91113bba 100644 --- a/pkgs/applications/editors/kakoune/plugins/case.kak.nix +++ b/pkgs/applications/editors/kakoune/plugins/case.kak.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchFromGitLab }: +{ lib, stdenv, fetchFromGitLab }: stdenv.mkDerivation { name = "case.kak"; @@ -16,7 +16,7 @@ stdenv.mkDerivation { cp -r rc/case.kak $out/share/kak/autoload/plugins ''; - meta = with stdenv.lib; { + meta = with lib; { description = "Case convention conversion for Kakoune"; homepage = "https://gitlab.com/FlyingWombat/case.kak"; license = licenses.unlicense; diff --git a/pkgs/applications/editors/kakoune/plugins/kak-ansi.nix b/pkgs/applications/editors/kakoune/plugins/kak-ansi.nix index 408cba45fbe..f34ee6d2999 100644 --- a/pkgs/applications/editors/kakoune/plugins/kak-ansi.nix +++ b/pkgs/applications/editors/kakoune/plugins/kak-ansi.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchFromGitHub }: +{ lib, stdenv, fetchFromGitHub }: stdenv.mkDerivation rec { name = "kak-ansi"; @@ -22,7 +22,7 @@ declare-option -hidden str ansi_filter %{'"$out"'/bin/kak-ansi-filter} ' rc/ansi.kak >$out/share/kak/autoload/plugins/ansi.kak ''; - meta = with stdenv.lib; { + meta = with lib; { description = "Kakoune support for rendering ANSI code"; homepage = "https://github.com/eraserhd/kak-ansi"; license = licenses.unlicense; diff --git a/pkgs/applications/editors/kakoune/plugins/kak-plumb.nix b/pkgs/applications/editors/kakoune/plugins/kak-plumb.nix index 7abef930531..0c59ca9a08f 100644 --- a/pkgs/applications/editors/kakoune/plugins/kak-plumb.nix +++ b/pkgs/applications/editors/kakoune/plugins/kak-plumb.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchFromGitHub, kakoune-unwrapped, plan9port, ... }: +{ lib, stdenv, fetchFromGitHub, kakoune-unwrapped, plan9port, ... }: stdenv.mkDerivation rec { pname = "kak-plumb"; @@ -21,7 +21,7 @@ stdenv.mkDerivation rec { chmod +x $out/bin/edit-client ''; - meta = with stdenv.lib; { + meta = with lib; { description = "Kakoune integration with the Plan 9 plumber"; homepage = "https://github.com/eraserhd/kak-plumb"; license = licenses.unlicense; diff --git a/pkgs/applications/editors/kakoune/plugins/openscad.kak.nix b/pkgs/applications/editors/kakoune/plugins/openscad.kak.nix index 21c8b7a60cc..57c1033ebbd 100644 --- a/pkgs/applications/editors/kakoune/plugins/openscad.kak.nix +++ b/pkgs/applications/editors/kakoune/plugins/openscad.kak.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchFromGitHub }: +{ lib, stdenv, fetchFromGitHub }: stdenv.mkDerivation { pname = "openscad.kak"; @@ -15,7 +15,7 @@ stdenv.mkDerivation { install -Dm644 rc/openscad.kak -t $out/share/kak/autoload/plugins/ ''; - meta = with stdenv.lib; { + meta = with lib; { description = "Syntax highlighting for OpenSCAD files"; homepage = "https://github.com/mayjs/openscad.kak"; license = licenses.unlicense; |