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/development/misc | |
parent | e87aef06e00c42b26789321454d7bd609548cc12 (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/development/misc')
-rw-r--r-- | pkgs/development/misc/avr/libc/default.nix | 4 | ||||
-rw-r--r-- | pkgs/development/misc/avr8-burn-omat/default.nix | 4 | ||||
-rw-r--r-- | pkgs/development/misc/h3/default.nix | 4 | ||||
-rw-r--r-- | pkgs/development/misc/loc/default.nix | 4 | ||||
-rw-r--r-- | pkgs/development/misc/msp430/mspdebug.nix | 4 | ||||
-rw-r--r-- | pkgs/development/misc/rappel/default.nix | 4 | ||||
-rw-r--r-- | pkgs/development/misc/resholve/resholve.nix | 4 | ||||
-rw-r--r-- | pkgs/development/misc/rpiboot/unstable.nix | 4 | ||||
-rw-r--r-- | pkgs/development/misc/stm32/betaflight/default.nix | 4 | ||||
-rw-r--r-- | pkgs/development/misc/stm32/inav/default.nix | 4 | ||||
-rw-r--r-- | pkgs/development/misc/yelp-tools/default.nix | 4 |
11 files changed, 22 insertions, 22 deletions
diff --git a/pkgs/development/misc/avr/libc/default.nix b/pkgs/development/misc/avr/libc/default.nix index 6682f72c62de6..83054b46a94c8 100644 --- a/pkgs/development/misc/avr/libc/default.nix +++ b/pkgs/development/misc/avr/libc/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchurl, automake, autoconf }: +{ lib, stdenv, fetchurl, automake, autoconf }: let version = "2.0.0"; @@ -22,7 +22,7 @@ stdenv.mkDerivation { incdir = "/avr/include"; }; - meta = with stdenv.lib; { + meta = with lib; { description = "a C runtime library for AVR microcontrollers"; homepage = "https://savannah.nongnu.org/projects/avr-libc/"; license = licenses.bsd3; diff --git a/pkgs/development/misc/avr8-burn-omat/default.nix b/pkgs/development/misc/avr8-burn-omat/default.nix index 1a92f8fdd9da0..1f504ac280e88 100644 --- a/pkgs/development/misc/avr8-burn-omat/default.nix +++ b/pkgs/development/misc/avr8-burn-omat/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchurl, unzip, runtimeShell }: +{ lib, stdenv, fetchurl, unzip, runtimeShell }: stdenv.mkDerivation { name = "avr8-burn-omat-2.1.2"; @@ -24,7 +24,7 @@ stdenv.mkDerivation { chmod +x $out/bin/avr8-burn-omat ''; - meta = with stdenv.lib; { + meta = with lib; { description = "GUI tool for avrdude"; homepage = "http://avr8-burn-o-mat.aaabbb.de/avr8_burn_o_mat_avrdude_gui_en.html"; license = stdenv.lib.licenses.gpl3; diff --git a/pkgs/development/misc/h3/default.nix b/pkgs/development/misc/h3/default.nix index 8b8515261a1c7..1d12e0f2b01f6 100644 --- a/pkgs/development/misc/h3/default.nix +++ b/pkgs/development/misc/h3/default.nix @@ -1,4 +1,4 @@ -{ stdenv +{ lib, stdenv , cmake , fetchFromGitHub }: @@ -21,7 +21,7 @@ stdenv.mkDerivation rec { "-DENABLE_LINTING=OFF" ]; - meta = with stdenv.lib; { + meta = with lib; { homepage = "https://github.com/uber/h3"; description = "Hexagonal hierarchical geospatial indexing system"; license = licenses.asl20; diff --git a/pkgs/development/misc/loc/default.nix b/pkgs/development/misc/loc/default.nix index d8b65a7c1473c..33de722baa242 100644 --- a/pkgs/development/misc/loc/default.nix +++ b/pkgs/development/misc/loc/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchFromGitHub, rustPlatform }: +{ lib, stdenv, fetchFromGitHub, rustPlatform }: with rustPlatform; @@ -15,7 +15,7 @@ buildRustPackage rec { cargoSha256 = "1fgv1kxiif48q9mm60ygn88r5nkxfyiacmvbgwp0jxiacv8r7779"; - meta = with stdenv.lib; { + meta = with lib; { homepage = "https://github.com/cgag/loc"; description = "Count lines of code quickly"; license = stdenv.lib.licenses.mit; diff --git a/pkgs/development/misc/msp430/mspdebug.nix b/pkgs/development/misc/msp430/mspdebug.nix index 471dd5b312292..f8616ff0bc4f1 100644 --- a/pkgs/development/misc/msp430/mspdebug.nix +++ b/pkgs/development/misc/msp430/mspdebug.nix @@ -1,4 +1,4 @@ -{ stdenv +{ lib, stdenv , fetchFromGitHub , autoPatchelfHook , libusb-compat-0_1 @@ -53,7 +53,7 @@ stdenv.mkDerivation rec { stdenv.lib.optional (!enableReadline) "WITHOUT_READLINE=1"; unameS = stdenv.lib.optionalString stdenv.isDarwin "Darwin"; - meta = with stdenv.lib; { + meta = with lib; { description = "A free programmer, debugger, and gdb proxy for MSP430 MCUs"; homepage = "https://dlbeer.co.nz/mspdebug/"; license = licenses.gpl2; diff --git a/pkgs/development/misc/rappel/default.nix b/pkgs/development/misc/rappel/default.nix index 761d2ea98ba02..67e202a005fc9 100644 --- a/pkgs/development/misc/rappel/default.nix +++ b/pkgs/development/misc/rappel/default.nix @@ -2,7 +2,7 @@ , libedit , makeWrapper , nasm -, stdenv +, lib, stdenv }: stdenv.mkDerivation rec { @@ -28,7 +28,7 @@ stdenv.mkDerivation rec { runHook postInstall ''; - meta = with stdenv.lib; { + meta = with lib; { homepage = "https://github.com/yrp604/rappel"; description = "A pretty janky assembly REPL"; license = licenses.bsdOriginal; diff --git a/pkgs/development/misc/resholve/resholve.nix b/pkgs/development/misc/resholve/resholve.nix index 2d1880f704cfd..06561e05dd900 100644 --- a/pkgs/development/misc/resholve/resholve.nix +++ b/pkgs/development/misc/resholve/resholve.nix @@ -1,4 +1,4 @@ -{ stdenv +{ lib, stdenv , callPackage , python27Packages , installShellFiles @@ -64,7 +64,7 @@ python27Packages.buildPythonApplication { ./test.sh ''; - meta = with stdenv.lib; { + meta = with lib; { description = "Resolve external shell-script dependencies"; homepage = "https://github.com/abathur/resholve"; license = with licenses; [ mit ]; diff --git a/pkgs/development/misc/rpiboot/unstable.nix b/pkgs/development/misc/rpiboot/unstable.nix index f12f5a845f171..d0cb663fb74ba 100644 --- a/pkgs/development/misc/rpiboot/unstable.nix +++ b/pkgs/development/misc/rpiboot/unstable.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchFromGitHub, libusb1 }: +{ lib, stdenv, fetchFromGitHub, libusb1 }: stdenv.mkDerivation { pname = "rpiboot"; @@ -24,7 +24,7 @@ stdenv.mkDerivation { cp -r msd $out/share/rpiboot ''; - meta = with stdenv.lib; { + meta = with lib; { homepage = "https://github.com/raspberrypi/usbboot"; description = "Utility to boot a Raspberry Pi CM/CM3/Zero over USB"; license = licenses.asl20; diff --git a/pkgs/development/misc/stm32/betaflight/default.nix b/pkgs/development/misc/stm32/betaflight/default.nix index dee5f51b290df..486ca04d36a56 100644 --- a/pkgs/development/misc/stm32/betaflight/default.nix +++ b/pkgs/development/misc/stm32/betaflight/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchFromGitHub +{ lib, stdenv, fetchFromGitHub , gcc-arm-embedded, binutils-arm-embedded, python2 , skipTargets ? [ # These targets do not build, for the reasons listed, along with the last version checked. @@ -57,7 +57,7 @@ in stdenv.mkDerivation rec { runHook postInstall ''; - meta = with stdenv.lib; { + meta = with lib; { description = "Flight controller software (firmware) used to fly multi-rotor craft and fixed wing craft"; homepage = "https://github.com/betaflight/betaflight"; license = licenses.gpl3; diff --git a/pkgs/development/misc/stm32/inav/default.nix b/pkgs/development/misc/stm32/inav/default.nix index 8ff8b45f06d4a..c7e59a5d27ea9 100644 --- a/pkgs/development/misc/stm32/inav/default.nix +++ b/pkgs/development/misc/stm32/inav/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchFromGitHub +{ lib, stdenv, fetchFromGitHub , gcc-arm-embedded, binutils-arm-embedded, ruby }: @@ -49,7 +49,7 @@ in stdenv.mkDerivation rec { runHook postInstall ''; - meta = with stdenv.lib; { + meta = with lib; { description = "Navigation-enabled flight control software"; homepage = "https://inavflight.github.io"; license = licenses.gpl3; diff --git a/pkgs/development/misc/yelp-tools/default.nix b/pkgs/development/misc/yelp-tools/default.nix index 19e345b3c2fdd..9e2d406303c87 100644 --- a/pkgs/development/misc/yelp-tools/default.nix +++ b/pkgs/development/misc/yelp-tools/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchurl, libxml2, libxslt, itstool, gnome3, pkgconfig }: +{ lib, stdenv, fetchurl, libxml2, libxslt, itstool, gnome3, pkgconfig }: stdenv.mkDerivation rec { pname = "yelp-tools"; @@ -20,7 +20,7 @@ stdenv.mkDerivation rec { doCheck = true; - meta = with stdenv.lib; { + meta = with lib; { homepage = "https://wiki.gnome.org/Apps/Yelp/Tools"; description = "Small programs that help you create, edit, manage, and publish your Mallard or DocBook documentation"; maintainers = with maintainers; [ domenkozar ]; |