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 = "amazon-ecs-cli";
|
||||
@@ -26,7 +26,7 @@ stdenv.mkDerivation rec {
|
||||
chmod +x $out/bin/ecs-cli
|
||||
''; # */
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
meta = with lib; {
|
||||
homepage = "https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ECS_CLI.html";
|
||||
description = "The Amazon ECS command line interface";
|
||||
longDescription = "The Amazon Elastic Container Service (Amazon ECS) command line interface (CLI) provides high-level commands to simplify creating, updating, and monitoring clusters and tasks from a local development environment.";
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{ stdenv, buildGoPackage, fetchFromGitHub }:
|
||||
{ lib, stdenv, buildGoPackage, fetchFromGitHub }:
|
||||
|
||||
buildGoPackage rec {
|
||||
pname = "awless";
|
||||
@@ -13,7 +13,7 @@ buildGoPackage rec {
|
||||
sha256 = "187i21yrm10r3f5naj3jl0rmydr5dkhmdhxs90hhf8hjp59a89kg";
|
||||
};
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/wallix/awless/";
|
||||
description = "A Mighty CLI for AWS";
|
||||
platforms = with platforms; linux ++ darwin;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{ stdenv, python3, glibcLocales }:
|
||||
{ lib, stdenv, python3, glibcLocales }:
|
||||
let
|
||||
|
||||
localPython = python3.override {
|
||||
@@ -87,7 +87,7 @@ in with localPython.pkgs; buildPythonApplication rec {
|
||||
mv $out/bin/eb_completion.bash $out/share/bash-completion/completions/
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
meta = with lib; {
|
||||
homepage = "https://aws.amazon.com/elasticbeanstalk/";
|
||||
description = "A command line interface for Elastic Beanstalk";
|
||||
maintainers = with maintainers; [ eqyiel ];
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{ stdenv, pkgconfig, buildGoPackage, fetchFromGitHub
|
||||
{ lib, stdenv, pkgconfig, buildGoPackage, fetchFromGitHub
|
||||
, makeWrapper, coreutils, gnupg, gnutar, squashfsTools, debootstrap
|
||||
}:
|
||||
|
||||
@@ -27,7 +27,7 @@ buildGoPackage rec {
|
||||
'';
|
||||
nativeBuildInputs = [ pkgconfig makeWrapper ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
meta = with lib; {
|
||||
description = "System container image builder for LXC and LXD";
|
||||
homepage = "https://github.com/lxc/distrobuilder";
|
||||
license = licenses.asl20;
|
||||
|
||||
@@ -47,7 +47,7 @@ stdenv.mkDerivation rec {
|
||||
inherit (nixosTests) google-oslogin;
|
||||
};
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/GoogleCloudPlatform/compute-image-packages";
|
||||
description = "OS Login Guest Environment for Google Compute Engine";
|
||||
license = licenses.asl20;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{ stdenv, buildGoPackage, fetchFromGitHub }:
|
||||
{ lib, stdenv, buildGoPackage, fetchFromGitHub }:
|
||||
|
||||
buildGoPackage {
|
||||
pname = "marathonctl-unstable";
|
||||
@@ -15,7 +15,7 @@ buildGoPackage {
|
||||
sha256 = "1fcc54hwpa8s3kz4gn26mc6nrv6zjrw869331nvm47khi23gpmxw";
|
||||
};
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/shoenig/marathonctl";
|
||||
description = "CLI tool for Marathon";
|
||||
license = licenses.mit;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{ stdenv, nix, fetchFromGitHub, makeWrapper }:
|
||||
{ lib, stdenv, nix, fetchFromGitHub, makeWrapper }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "nixos-shell";
|
||||
@@ -20,7 +20,7 @@ stdenv.mkDerivation rec {
|
||||
|
||||
installFlags = [ "PREFIX=${placeholder "out"}" ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
meta = with lib; {
|
||||
description = "Spawns lightweight nixos vms in a shell";
|
||||
inherit (src.meta) homepage;
|
||||
license = licenses.mit;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{ stdenv, fetchFromGitHub, proot, patchelf, fakechroot, runc, simplejson, pycurl, coreutils, nose, mock, buildPythonApplication }:
|
||||
{ lib, stdenv, fetchFromGitHub, proot, patchelf, fakechroot, runc, simplejson, pycurl, coreutils, nose, mock, buildPythonApplication }:
|
||||
|
||||
buildPythonApplication rec {
|
||||
|
||||
@@ -31,7 +31,7 @@ buildPythonApplication rec {
|
||||
NOSE_EXCLUDE=test_03_create_repo,test_04_is_repo,test_02__get_group_from_host nosetests -v tests/unit_tests.py
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
meta = with lib; {
|
||||
description = "basic user tool to execute simple docker containers in user space without root privileges";
|
||||
homepage = "https://indigo-dc.gitbooks.io/udocker";
|
||||
license = licenses.asl20;
|
||||
|
||||
Reference in New Issue
Block a user