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:
@@ -27,7 +27,7 @@ stdenv.mkDerivation rec {
|
||||
}"
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
meta = with lib; {
|
||||
description = "A pure Unix shell script implementing ACME client protocol";
|
||||
homepage = "https://acme.sh/";
|
||||
license = licenses.gpl3;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{ stdenv, fetchurl, openldap }:
|
||||
{ lib, stdenv, fetchurl, openldap }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "adtool";
|
||||
@@ -30,7 +30,7 @@ stdenv.mkDerivation rec {
|
||||
# It requires an LDAP server for tests
|
||||
doCheck = false;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
meta = with lib; {
|
||||
description = "Active Directory administration utility for Unix";
|
||||
homepage = "https://gp2x.org/adtool";
|
||||
license = licenses.gpl2;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{ stdenv
|
||||
{ lib, stdenv
|
||||
, buildGoModule
|
||||
, fetchFromGitHub
|
||||
}:
|
||||
@@ -27,7 +27,7 @@ buildGoModule rec {
|
||||
|
||||
subPackages = [ "." ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
meta = with lib; {
|
||||
description = "Nuke a whole AWS account and delete all its resources";
|
||||
homepage = "https://github.com/rebuy-de/aws-nuke";
|
||||
license = licenses.mit;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{ stdenv, buildGoPackage, fetchFromGitHub }:
|
||||
{ lib, stdenv, buildGoPackage, fetchFromGitHub }:
|
||||
|
||||
buildGoPackage rec {
|
||||
pname = "aws-rotate-key";
|
||||
@@ -15,7 +15,7 @@ buildGoPackage rec {
|
||||
|
||||
goDeps = ./deps.nix;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
meta = with lib; {
|
||||
description = "Easily rotate your AWS key";
|
||||
homepage = "https://github.com/Fullscreen/aws-rotate-key";
|
||||
license = licenses.mit;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{ stdenv, fetchFromGitHub, python3Packages }:
|
||||
{ lib, stdenv, fetchFromGitHub, python3Packages }:
|
||||
|
||||
python3Packages.buildPythonApplication rec {
|
||||
pname = "awslogs";
|
||||
@@ -17,7 +17,7 @@ python3Packages.buildPythonApplication rec {
|
||||
boto3 termcolor dateutil docutils setuptools
|
||||
];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/jorgebastida/awslogs";
|
||||
description = "AWS CloudWatch logs for Humans";
|
||||
maintainers = with maintainers; [ dbrock ];
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{ stdenv
|
||||
{ lib, stdenv
|
||||
, awscli
|
||||
, jq
|
||||
, fetchgit
|
||||
@@ -62,7 +62,7 @@ stdenv.mkDerivation rec {
|
||||
popd
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
meta = with lib; {
|
||||
homepage = "https://bash-my-aws.org";
|
||||
description = "CLI commands for AWS";
|
||||
license = licenses.mit;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{ stdenv, buildGoModule, fetchFromGitHub }:
|
||||
{ lib, stdenv, buildGoModule, fetchFromGitHub }:
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "berglas";
|
||||
@@ -15,7 +15,7 @@ buildGoModule rec {
|
||||
|
||||
doCheck = false;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
meta = with lib; {
|
||||
description = "A tool for managing secrets on Google Cloud";
|
||||
homepage = "https://github.com/GoogleCloudPlatform/berglas";
|
||||
license = licenses.asl20;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{ stdenv, fetchurl, libxslt, docbook_xsl, libcap }:
|
||||
{ lib, stdenv, fetchurl, libxslt, docbook_xsl, libcap }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "bubblewrap";
|
||||
@@ -12,7 +12,7 @@ stdenv.mkDerivation rec {
|
||||
nativeBuildInputs = [ libxslt docbook_xsl ];
|
||||
buildInputs = [ libcap ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
meta = with lib; {
|
||||
description = "Unprivileged sandboxing tool";
|
||||
homepage = "https://github.com/containers/bubblewrap";
|
||||
license = licenses.lgpl2Plus;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{ stdenv, buildGoModule, fetchFromGitHub }:
|
||||
{ lib, stdenv, buildGoModule, fetchFromGitHub }:
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "certigo";
|
||||
@@ -15,7 +15,7 @@ buildGoModule rec {
|
||||
|
||||
doCheck = false;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
meta = with lib; {
|
||||
description = "A utility to examine and validate certificates in a variety of formats";
|
||||
homepage = "https://github.com/square/certigo";
|
||||
license = licenses.asl20;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{ python, stdenv }:
|
||||
{ python, lib, stdenv }:
|
||||
|
||||
with python.pkgs;
|
||||
|
||||
@@ -11,7 +11,7 @@ buildPythonApplication rec {
|
||||
sha256 = "0gmxavjkjkvjysgf9cf5fcpk589gb75n1mn20iki82wifi1pk1jn";
|
||||
};
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
meta = with lib; {
|
||||
description = "A tool to detect crontab errors";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ SuperSandro2000 ];
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{ stdenv, buildGoModule, fetchFromGitHub }:
|
||||
{ lib, stdenv, buildGoModule, fetchFromGitHub }:
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "credhub-cli";
|
||||
@@ -35,7 +35,7 @@ buildGoModule rec {
|
||||
export HOME=$TMPDIR
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
meta = with lib; {
|
||||
description = "Provides a command line interface to interact with CredHub servers";
|
||||
homepage = "https://github.com/cloudfoundry-incubator/credhub-cli";
|
||||
maintainers = with maintainers; [ ris ];
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{ stdenv, coreutils, curl, diffutils, gawk, gnugrep, gnused, openssl, makeWrapper, fetchFromGitHub, installShellFiles }:
|
||||
{ lib, stdenv, coreutils, curl, diffutils, gawk, gnugrep, gnused, openssl, makeWrapper, fetchFromGitHub, installShellFiles }:
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "dehydrated";
|
||||
version = "0.7.0";
|
||||
@@ -25,7 +25,7 @@ stdenv.mkDerivation rec {
|
||||
wrapProgram "$out/bin/dehydrated" --prefix PATH : "${stdenv.lib.makeBinPath [ openssl coreutils gnused gnugrep diffutils curl gawk ]}"
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
meta = with lib; {
|
||||
inherit (src.meta) homepage;
|
||||
description = "Letsencrypt/acme client implemented as a shell-script";
|
||||
license = licenses.mit;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{ stdenv, buildGoPackage, fetchFromGitHub }:
|
||||
{ lib, stdenv, buildGoPackage, fetchFromGitHub }:
|
||||
|
||||
buildGoPackage rec {
|
||||
pname = "docker-credential-gcr";
|
||||
@@ -13,7 +13,7 @@ buildGoPackage rec {
|
||||
sha256 = "0m7jx669yf27z2g9gw9vwncpwldrcb3ldlf1xhvbwbijnc2jk866";
|
||||
};
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
meta = with lib; {
|
||||
description = "A Docker credential helper for GCR (https://gcr.io) users";
|
||||
longDescription = ''
|
||||
docker-credential-gcr is Google Container Registry's Docker credential
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{ stdenv, buildGoPackage, fetchFromGitHub, pkg-config, libsecret }:
|
||||
{ lib, stdenv, buildGoPackage, fetchFromGitHub, pkg-config, libsecret }:
|
||||
|
||||
buildGoPackage rec {
|
||||
pname = "docker-credential-helpers";
|
||||
@@ -39,7 +39,7 @@ buildGoPackage rec {
|
||||
install -Dm755 -t $out/bin bin/docker-credential-secretservice
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
meta = with lib; {
|
||||
description = "Suite of programs to use native stores to keep Docker credentials safe";
|
||||
homepage = "https://github.com/docker/docker-credential-helpers";
|
||||
license = licenses.mit;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{ stdenv, bundlerEnv, ruby, bundlerUpdateScript, makeWrapper }:
|
||||
{ lib, stdenv, bundlerEnv, ruby, bundlerUpdateScript, makeWrapper }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "fastlane";
|
||||
@@ -22,7 +22,7 @@ stdenv.mkDerivation rec {
|
||||
|
||||
passthru.updateScript = bundlerUpdateScript "fastlane";
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
meta = with lib; {
|
||||
description = "A tool to automate building and releasing iOS and Android apps";
|
||||
longDescription = "fastlane is a tool for iOS and Android developers to automate tedious tasks like generating screenshots, dealing with provisioning profiles, and releasing your application.";
|
||||
homepage = "https://github.com/fastlane/fastlane";
|
||||
|
||||
@@ -93,7 +93,7 @@ in stdenv.mkDerivation rec {
|
||||
done
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
meta = with lib; {
|
||||
description = "Tools for the google cloud platform";
|
||||
longDescription = "The Google Cloud SDK. This package has the programs: gcloud, gsutil, and bq";
|
||||
# This package contains vendored dependencies. All have free licenses.
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{ stdenv
|
||||
{ lib, stdenv
|
||||
, fetchurl
|
||||
, fetchpatch
|
||||
, meson
|
||||
@@ -68,7 +68,7 @@ stdenv.mkDerivation rec {
|
||||
};
|
||||
};
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
meta = with lib; {
|
||||
description = "GTK VNC widget";
|
||||
homepage = "https://wiki.gnome.org/Projects/gtk-vnc";
|
||||
license = licenses.lgpl2Plus;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{ stdenv, buildGoModule, fetchFromGitHub }:
|
||||
{ lib, stdenv, buildGoModule, fetchFromGitHub }:
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "iamy";
|
||||
@@ -19,7 +19,7 @@ buildGoModule rec {
|
||||
-X main.Version=v${version} -s -w
|
||||
''];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
meta = with lib; {
|
||||
description = "A cli tool for importing and exporting AWS IAM configuration to YAML files";
|
||||
homepage = "https://github.com/99designs/iamy";
|
||||
license = licenses.mit;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{ stdenv, hwdata, pkgconfig, lxc, buildGoPackage, fetchurl
|
||||
{ lib, stdenv, hwdata, pkgconfig, lxc, buildGoPackage, fetchurl
|
||||
, makeWrapper, acl, rsync, gnutar, xz, btrfs-progs, gzip, dnsmasq
|
||||
, squashfsTools, iproute, iptables, ebtables, iptables-nftables-compat, libcap
|
||||
, libco-canonical, dqlite, raft-canonical, sqlite-replication, udev
|
||||
@@ -62,7 +62,7 @@ buildGoPackage rec {
|
||||
buildInputs = [ lxc acl libcap libco-canonical.dev dqlite.dev
|
||||
raft-canonical.dev sqlite-replication udev.dev ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
meta = with lib; {
|
||||
description = "Daemon based on liblxc offering a REST API to manage containers";
|
||||
homepage = "https://linuxcontainers.org/lxd/";
|
||||
license = licenses.asl20;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{ stdenv, file, fetchurl, makeWrapper,
|
||||
{ lib, stdenv, file, fetchurl, makeWrapper,
|
||||
autoPatchelfHook, jsoncpp, libpulseaudio }:
|
||||
let
|
||||
versionMajor = "6.12";
|
||||
@@ -81,7 +81,7 @@ in
|
||||
dontBuild = true;
|
||||
dontStrip = true;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
meta = with lib; {
|
||||
description = "NoMachine remote desktop client (nxplayer)";
|
||||
homepage = "https://www.nomachine.com/";
|
||||
license = {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{ stdenv, fetchFromGitHub, rustPlatform, Security }:
|
||||
{ lib, stdenv, fetchFromGitHub, rustPlatform, Security }:
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "procs";
|
||||
@@ -15,7 +15,7 @@ rustPlatform.buildRustPackage rec {
|
||||
|
||||
buildInputs = stdenv.lib.optional stdenv.isDarwin Security;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
meta = with lib; {
|
||||
description = "A modern replacement for ps written in Rust";
|
||||
homepage = "https://github.com/dalance/procs";
|
||||
license = licenses.mit;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{ stdenv, python3Packages }:
|
||||
{ lib, stdenv, python3Packages }:
|
||||
|
||||
python3Packages.buildPythonPackage rec {
|
||||
pname = "s3bro";
|
||||
@@ -14,7 +14,7 @@ python3Packages.buildPythonPackage rec {
|
||||
# No tests
|
||||
doCheck = false;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
meta = with lib; {
|
||||
description = "A handy s3 cli tool";
|
||||
homepage = "https://github.com/rsavordelli/s3bro";
|
||||
license = licenses.mit;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{ stdenv, fetchFromGitHub, buildGoPackage }:
|
||||
{ lib, stdenv, fetchFromGitHub, buildGoPackage }:
|
||||
|
||||
buildGoPackage rec {
|
||||
pname = "scaleway-cli";
|
||||
@@ -13,7 +13,7 @@ buildGoPackage rec {
|
||||
sha256 = "14likzp3hl04nq9nmpmh9m5zqjyspy5cyk20dkh03c1nhkd4vcnx";
|
||||
};
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
meta = with lib; {
|
||||
description = "Interact with Scaleway API from the command line";
|
||||
homepage = "https://github.com/scaleway/scaleway-cli";
|
||||
license = licenses.mit;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{ stdenv, python3Packages }:
|
||||
{ lib, stdenv, python3Packages }:
|
||||
|
||||
python3Packages.buildPythonApplication rec {
|
||||
pname = "sewer";
|
||||
@@ -11,7 +11,7 @@ python3Packages.buildPythonApplication rec {
|
||||
|
||||
propagatedBuildInputs = with python3Packages; [ pyopenssl requests tldextract ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/komuw/sewer";
|
||||
description = "ACME client";
|
||||
license = licenses.mit;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{ stdenv, python3Packages, bash }:
|
||||
{ lib, stdenv, python3Packages, bash }:
|
||||
|
||||
python3Packages.buildPythonApplication rec {
|
||||
pname = "simp_le-client";
|
||||
@@ -22,7 +22,7 @@ python3Packages.buildPythonApplication rec {
|
||||
|
||||
propagatedBuildInputs = with python3Packages; [ acme setuptools_scm josepy idna ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/zenhack/simp_le";
|
||||
description = "Simple Let's Encrypt client";
|
||||
license = licenses.gpl3;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{ buildPythonPackage
|
||||
, stdenv
|
||||
, lib, stdenv
|
||||
, fetchgit
|
||||
, requests
|
||||
, makeWrapper
|
||||
@@ -27,7 +27,7 @@ buildPythonPackage rec {
|
||||
# handlers require main bin, main bin requires handlers
|
||||
makeWrapperArgs = [ "--prefix" ":" "$out/bin" ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
meta = with lib; {
|
||||
description = "Retrieves an SSH public key and installs it locally";
|
||||
license = licenses.gpl3;
|
||||
maintainers = with maintainers; [ mkg20001 ];
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{ stdenv
|
||||
{ lib, stdenv
|
||||
, fetchFromGitHub
|
||||
, makeWrapper
|
||||
, openssl
|
||||
@@ -46,7 +46,7 @@ stdenv.mkDerivation rec {
|
||||
--set PATH "${stdenv.lib.makeBinPath buildInputs}"
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
meta = with lib; {
|
||||
description = "a Bourne shell script that can be used to report on expiring SSL certificates";
|
||||
homepage = "https://github.com/Matty9191/ssl-cert-check";
|
||||
license = licenses.gpl2;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{ stdenv, buildGoModule, fetchFromGitHub }:
|
||||
{ lib, stdenv, buildGoModule, fetchFromGitHub }:
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "ssmsh";
|
||||
@@ -17,7 +17,7 @@ buildGoModule rec {
|
||||
|
||||
buildFlagsArray = [ "-ldflags=-w -s -X main.Version=${version}" ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/bwhaley/ssmsh";
|
||||
description = "An interactive shell for AWS Parameter Store";
|
||||
license = licenses.mit;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{ stdenv, buildGoModule, fetchFromGitHub }:
|
||||
{ lib, stdenv, buildGoModule, fetchFromGitHub }:
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "stripe-cli";
|
||||
@@ -17,7 +17,7 @@ buildGoModule rec {
|
||||
"cmd/stripe"
|
||||
];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
meta = with lib; {
|
||||
homepage = "https://stripe.com/docs/stripe-cli";
|
||||
description = "A command-line tool for Stripe";
|
||||
license = with licenses; [ asl20 ];
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{ stdenv, fetchFromGitHub, python3Packages, x11vnc, xrandr, libGL }:
|
||||
{ lib, stdenv, fetchFromGitHub, python3Packages, x11vnc, xrandr, libGL }:
|
||||
|
||||
python3Packages.buildPythonApplication rec {
|
||||
pname = "virtscreen";
|
||||
@@ -30,7 +30,7 @@ python3Packages.buildPythonApplication rec {
|
||||
--replace "'GL'" "'${libGL}/lib/libGL${ext}'" \
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
meta = with lib; {
|
||||
description = "Make your iPad/tablet/computer as a secondary monitor on Linux";
|
||||
homepage = "https://github.com/kbumsik/VirtScreen";
|
||||
license = licenses.gpl3;
|
||||
|
||||
Reference in New Issue
Block a user