pkgs/development/tools: stdenv.lib -> lib

This commit is contained in:
Ben Siraphob
2021-01-23 19:26:19 +07:00
parent f6a583eeec
commit c522fec274
534 changed files with 1314 additions and 1314 deletions

View File

@@ -1,4 +1,4 @@
{ stdenv, buildGoModule, fetchFromGitHub }:
{ lib, stdenv, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "dbmate";
@@ -15,7 +15,7 @@ buildGoModule rec {
doCheck = false;
meta = with stdenv.lib; {
meta = with lib; {
description = "Database migration tool";
homepage = "https://github.com/amacneil/dbmate";
license = licenses.mit;

View File

@@ -1,4 +1,4 @@
{ stdenv, fetchurl, postgresql, getopt, makeWrapper }:
{ lib, stdenv, fetchurl, postgresql, getopt, makeWrapper }:
stdenv.mkDerivation rec {
pname = "ephemeralpg";
version = "3.1";
@@ -10,9 +10,9 @@ stdenv.mkDerivation rec {
installPhase = ''
mkdir -p $out
PREFIX=$out make install
wrapProgram $out/bin/pg_tmp --prefix PATH : ${stdenv.lib.makeBinPath [ postgresql getopt ]}
wrapProgram $out/bin/pg_tmp --prefix PATH : ${lib.makeBinPath [ postgresql getopt ]}
'';
meta = with stdenv.lib; {
meta = with lib; {
description = "Run tests on an isolated, temporary PostgreSQL database";
license = licenses.isc;
homepage = "http://ephemeralpg.org/";

View File

@@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, libxslt, docbook_xsl, postgresql }:
{ lib, stdenv, fetchFromGitHub, libxslt, docbook_xsl, postgresql }:
stdenv.mkDerivation rec {
pname = "pg_checksums";
@@ -27,7 +27,7 @@ stdenv.mkDerivation rec {
install -Dm644 -t $out/share/man/man1 doc/man1/pg_checksums.1
'';
meta = with stdenv.lib; {
meta = with lib; {
description = "Activate/deactivate/verify checksums in offline PostgreSQL clusters";
homepage = "https://github.com/credativ/pg_checksums";
maintainers = [ maintainers.marsam ];

View File

@@ -1,4 +1,4 @@
{ stdenv
{ lib, stdenv
, buildPythonApplication
, fetchPypi
, isPy3k
@@ -46,9 +46,9 @@ buildPythonApplication rec {
checkInputs = [ pytestCheckHook mock ];
disabledTests = stdenv.lib.optionals stdenv.isDarwin [ "test_application_name_db_uri" ];
disabledTests = lib.optionals stdenv.isDarwin [ "test_application_name_db_uri" ];
meta = with stdenv.lib; {
meta = with lib; {
description = "Command-line interface for PostgreSQL";
longDescription = ''
Rich command-line interface for PostgreSQL with auto-completion and

View File

@@ -1,4 +1,4 @@
{ stdenv, pythonPackages, fetchFromGitHub }:
{ lib, stdenv, pythonPackages, fetchFromGitHub }:
let
pgdbconn = pythonPackages.buildPythonPackage {
@@ -39,7 +39,7 @@ pythonPackages.buildPythonApplication {
meta = {
description = "A declarative language to describe PostgreSQL databases";
homepage = "https://perseas.github.io/";
license = stdenv.lib.licenses.bsd3;
maintainers = with stdenv.lib.maintainers; [ pmeunier ];
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ pmeunier ];
};
}

View File

@@ -34,7 +34,7 @@ stdenv.mkDerivation rec {
mkdir -p $out/bin
'';
meta = with stdenv.lib; {
meta = with lib; {
description = "Minimalistic database migration tool with MySQL, PostgreSQL and SQLite support";
homepage = "https://github.com/mbucc/shmig";
license = licenses.bsd3;

View File

@@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, cmake }:
{ lib, stdenv, fetchFromGitHub, cmake }:
stdenv.mkDerivation rec {
pname = "sqlcheck";
@@ -16,7 +16,7 @@ stdenv.mkDerivation rec {
doCheck = true;
meta = with stdenv.lib; {
meta = with lib; {
inherit (src.meta) homepage;
description = "Automatically identify anti-patterns in SQL queries";
license = licenses.asl20;

View File

@@ -1,4 +1,4 @@
{ stdenv, makeDesktopItem, makeWrapper, requireFile, unzip, jdk }:
{ lib, stdenv, makeDesktopItem, makeWrapper, requireFile, unzip, jdk }:
let
version = "20.2.0.175.1842";
@@ -65,7 +65,7 @@ in
--run "cd $out/libexec/sqldeveloper/bin"
'';
meta = with stdenv.lib; {
meta = with lib; {
description = "Oracle's Oracle DB GUI client";
longDescription = ''
Oracle SQL Developer is a free integrated development environment that

View File

@@ -1,6 +1,6 @@
# To enable specific database drivers, override this derivation and pass the
# driver packages in the drivers argument (e.g. mysql_jdbc, postgresql_jdbc).
{ stdenv, fetchurl, makeDesktopItem, makeWrapper, unzip
{ lib, stdenv, fetchurl, makeDesktopItem, makeWrapper, unzip
, jre
, drivers ? []
}:
@@ -69,7 +69,7 @@ in stdenv.mkDerivation rec {
icon = "squirrel-sql";
};
meta = with stdenv.lib; {
meta = with lib; {
description = "Universal SQL Client";
homepage = "http://squirrel-sql.sourceforge.net/";
license = licenses.lgpl21;

View File

@@ -1,4 +1,4 @@
{ stdenv, buildGoModule, fetchFromGitHub }:
{ lib, stdenv, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "timescaledb-parallel-copy";
@@ -13,7 +13,7 @@ buildGoModule rec {
vendorSha256 = "03siay3hv1sgmmp7w4f9b0xb8c6bnbx0v4wy5grjl5k04zhnj76b";
meta = with stdenv.lib; {
meta = with lib; {
description = "Bulk, parallel insert of CSV records into PostgreSQL";
homepage = "https://github.com/timescale/timescaledb-parallel-copy";
license = licenses.asl20;

View File

@@ -1,4 +1,4 @@
{ stdenv, buildGoModule, fetchFromGitHub }:
{ lib, stdenv, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "timescaledb-tune";
@@ -13,7 +13,7 @@ buildGoModule rec {
vendorSha256 = "0hbpprbxs19fcar7xcy42kn9yfzhal2zsv5pml9ghiv2s61yns4z";
meta = with stdenv.lib; {
meta = with lib; {
description = "A tool for tuning your TimescaleDB for better performance";
homepage = "https://github.com/timescale/timescaledb-tune";
license = licenses.asl20;

View File

@@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, hiredis, http-parser, jansson, libevent, fetchpatch }:
{ lib, stdenv, fetchFromGitHub, hiredis, http-parser, jansson, libevent, fetchpatch }:
stdenv.mkDerivation rec {
pname = "webdis";
@@ -18,7 +18,7 @@ stdenv.mkDerivation rec {
"CONFDIR=${placeholder "out"}/share/webdis"
];
meta = with stdenv.lib; {
meta = with lib; {
description = "A Redis HTTP interface with JSON output";
homepage = "https://webd.is/";
license = licenses.bsd2;