summaryrefslogtreecommitdiffstats
path: root/pkgs/development/perl-modules
diff options
context:
space:
mode:
authorPavol Rusnak <pavol@rusnak.io>2021-01-17 19:11:59 +0100
committerPavol Rusnak <pavol@rusnak.io>2021-01-17 19:11:59 +0100
commitcf2a67fef385d021ced8a63048c0cf88f2d8dbc5 (patch)
tree023d243734d46147fd7738d3ef353b3dbd76a5ac /pkgs/development/perl-modules
parent979e6e67d32a934dcc39dedfd588baf6e3f7ed78 (diff)
pkgs/development: stdenv.lib -> lib
this takes care of the following folders in pkgs/development: * arduino * chez-modules * go-packages * guile-modules * idris-modules * perl-modules * r-modules * ruby-modules
Diffstat (limited to 'pkgs/development/perl-modules')
-rw-r--r--pkgs/development/perl-modules/WWW-YoutubeViewer/default.nix12
-rw-r--r--pkgs/development/perl-modules/maatkit/default.nix6
-rw-r--r--pkgs/development/perl-modules/strip-nondeterminism/default.nix4
3 files changed, 11 insertions, 11 deletions
diff --git a/pkgs/development/perl-modules/WWW-YoutubeViewer/default.nix b/pkgs/development/perl-modules/WWW-YoutubeViewer/default.nix
index ccc59980dd1d..17ec8ab48b59 100644
--- a/pkgs/development/perl-modules/WWW-YoutubeViewer/default.nix
+++ b/pkgs/development/perl-modules/WWW-YoutubeViewer/default.nix
@@ -1,4 +1,4 @@
-{ stdenv, fetchFromGitHub, buildPerlPackage, shortenPerlShebang, LWP, LWPProtocolHttps, DataDump, JSON }:
+{ stdenv, lib, fetchFromGitHub, buildPerlPackage, shortenPerlShebang, LWP, LWPProtocolHttps, DataDump, JSON }:
buildPerlPackage rec {
pname = "WWW-YoutubeViewer";
@@ -11,21 +11,21 @@ buildPerlPackage rec {
sha256 = "16p0sa91h0zpqdpqmy348g6b9qj5f6qrbzrljn157vk00cg6mx18";
};
- nativeBuildInputs = stdenv.lib.optional stdenv.isDarwin shortenPerlShebang;
+ nativeBuildInputs = lib.optional stdenv.isDarwin shortenPerlShebang;
propagatedBuildInputs = [
LWP
LWPProtocolHttps
DataDump
JSON
];
- postInstall = stdenv.lib.optionalString stdenv.isDarwin ''
+ postInstall = lib.optionalString stdenv.isDarwin ''
shortenPerlShebang $out/bin/youtube-viewer
'';
- meta = {
+ meta = with lib; {
description = "A lightweight application for searching and streaming videos from YouTube";
homepage = "https://github.com/trizen/youtube-viewer";
- maintainers = with stdenv.lib.maintainers; [ woffs ];
- license = with stdenv.lib.licenses; [ artistic2 ];
+ maintainers = with maintainers; [ woffs ];
+ license = with licenses; [ artistic2 ];
};
}
diff --git a/pkgs/development/perl-modules/maatkit/default.nix b/pkgs/development/perl-modules/maatkit/default.nix
index e0a1a45cd442..29bcc9bab25f 100644
--- a/pkgs/development/perl-modules/maatkit/default.nix
+++ b/pkgs/development/perl-modules/maatkit/default.nix
@@ -1,4 +1,4 @@
-{buildPerlPackage, stdenv, fetchurl, DBDmysql}:
+{buildPerlPackage, lib, stdenv, fetchurl, DBDmysql}:
buildPerlPackage {
pname = "maatkit";
@@ -27,7 +27,7 @@ buildPerlPackage {
done
'' ;
- meta = {
+ meta = with lib; {
description = "Database toolkit";
longDescription = ''
You can use Maatkit to prove replication is working correctly, fix
@@ -37,7 +37,7 @@ buildPerlPackage {
In addition to MySQL, there is support for PostgreSQL, Memcached, and a
growing variety of other databases and technologies.
'';
- license = stdenv.lib.licenses.gpl2Plus;
+ license = licenses.gpl2Plus;
homepage = "http://www.maatkit.org/";
};
}
diff --git a/pkgs/development/perl-modules/strip-nondeterminism/default.nix b/pkgs/development/perl-modules/strip-nondeterminism/default.nix
index 80e81cad74d1..20463ed24250 100644
--- a/pkgs/development/perl-modules/strip-nondeterminism/default.nix
+++ b/pkgs/development/perl-modules/strip-nondeterminism/default.nix
@@ -17,7 +17,7 @@ buildPerlPackage rec {
# stray test failure
doCheck = false;
- nativeBuildInputs = stdenv.lib.optionals stdenv.isDarwin [ shortenPerlShebang ];
+ nativeBuildInputs = lib.optionals stdenv.isDarwin [ shortenPerlShebang ];
buildInputs = [ ArchiveZip ArchiveCpio file ];
perlPostHook = ''
@@ -26,7 +26,7 @@ buildPerlPackage rec {
rm $out/share/man/man1/dh_strip_nondeterminism.1.gz
'';
- postInstall = stdenv.lib.optionalString stdenv.isDarwin ''
+ postInstall = lib.optionalString stdenv.isDarwin ''
shortenPerlShebang $out/bin/strip-nondeterminism
'';