Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: c307ed817023
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: a74f98051b46
Choose a head ref
Loading
16 changes: 0 additions & 16 deletions pkgs/development/perl-modules/BerkeleyDB/default.nix

This file was deleted.

27 changes: 0 additions & 27 deletions pkgs/development/perl-modules/Compress-Raw-Zlib/default.nix

This file was deleted.

20 changes: 0 additions & 20 deletions pkgs/development/perl-modules/DBD-Oracle/default.nix

This file was deleted.

25 changes: 0 additions & 25 deletions pkgs/development/perl-modules/DBD-Pg/default.nix

This file was deleted.

32 changes: 0 additions & 32 deletions pkgs/development/perl-modules/DBD-SQLite/default.nix

This file was deleted.

18 changes: 0 additions & 18 deletions pkgs/development/perl-modules/DBD-mysql/default.nix

This file was deleted.

18 changes: 0 additions & 18 deletions pkgs/development/perl-modules/DBD-sybase/default.nix

This file was deleted.

20 changes: 0 additions & 20 deletions pkgs/development/perl-modules/DB_File/default.nix

This file was deleted.

17 changes: 17 additions & 0 deletions pkgs/development/perl-modules/Mozilla-LDAP/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{ lib, fetchurl, openldap, buildPerlPackage }:

buildPerlPackage rec {
pname = "Mozilla-Ldap";
version = "1.5.3";
USE_OPENLDAP = 1;
LDAPSDKDIR = openldap.dev;
LDAPSDKLIBDIR = "${openldap.out}/lib";
src = fetchurl {
url = "https://ftp.mozilla.org/pub/directory/perldap/releases/${version}/src/perl-mozldap-${version}.tar.gz";
sha256 = "0s0albdw0zvg3w37s7is7gddr4mqwicjxxsy400n1p96l7ipnw4x";
};
meta = {
description = "Mozilla's ldap client library";
license = with lib.licenses; [ mpl20 lgpl21Plus gpl2Plus ];
};
}
20 changes: 20 additions & 0 deletions pkgs/development/perl-modules/Percona-Toolkit/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{ lib, fetchFromGitHub, buildPerlPackage, DBDmysql, DBI, IOSocketSSL, TermReadKey }:

buildPerlPackage {
pname = "Percona-Toolkit";
version = "3.0.12";
src = fetchFromGitHub {
owner = "percona";
repo = "percona-toolkit";
rev = "3.0.12";
sha256 = "0xk4h4dzl80kf97lbx0nznx9ajrb6kkg7k3iwca3rj6f3rqggv9y";
};
outputs = [ "out" ];
buildInputs = [ DBDmysql DBI IOSocketSSL TermReadKey ];
meta = {
description = ''Collection of advanced command-line tools to perform a variety of MySQL and system tasks.'';
homepage = http://www.percona.com/software/percona-toolkit;
license = with lib.licenses; [ gpl2 ];
maintainers = with lib.maintainers; [ izorkin ];
};
}
36 changes: 36 additions & 0 deletions pkgs/development/perl-modules/Po4a/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{ lib, fetchurl, docbook_xsl, docbook_xsl_ns, gettext, libxslt, glibcLocales, docbook_xml_dtd_412, docbook_sgml_dtd_41, texlive, opensp
, perl, buildPerlPackage, ModuleBuild, TextWrapI18N, LocaleGettext, TermReadKey, SGMLSpm, UnicodeLineBreak, PodParser, YAMLTiny }:

buildPerlPackage rec {
pname = "po4a";
version = "0.55";
src = fetchurl {
url = "https://github.com/mquinson/po4a/releases/download/v${version}/po4a-${version}.tar.gz";
sha256 = "1qss4q5df3nsydsbggb7gg50bn0kdxq5wn8riqm9zwkiq6a4bifg";
};
nativeBuildInputs = [ docbook_xsl docbook_xsl_ns ModuleBuild ];
propagatedBuildInputs = [ TextWrapI18N LocaleGettext TermReadKey SGMLSpm UnicodeLineBreak PodParser YAMLTiny ];
buildInputs = [ gettext libxslt glibcLocales docbook_xml_dtd_412 docbook_sgml_dtd_41 texlive.combined.scheme-basic opensp ];
LC_ALL = "en_US.UTF-8";
SGML_CATALOG_FILES = "${docbook_xml_dtd_412}/xml/dtd/docbook/catalog.xml";
preConfigure = ''
touch Makefile.PL
export PERL_MB_OPT="--install_base=$out --prefix=$out"
'';
buildPhase = "perl Build.PL --install_base=$out --install_path=\"lib=$out/${perl.libPrefix}\"; ./Build build";
checkPhase = ''
export SGML_CATALOG_FILES=${docbook_sgml_dtd_41}/sgml/dtd/docbook-4.1/docbook.cat
./Build test
'';
installPhase = ''
./Build install
for f in $out/bin/*; do
substituteInPlace $f --replace "#! /usr/bin/env perl" "#!${perl}/bin/perl"
done
'';
meta = {
homepage = "https://po4a.org/";
description = "Tools for helping translation of documentation";
license = lib.licenses.gpl2;
};
}
31 changes: 31 additions & 0 deletions pkgs/development/perl-modules/WWW-YoutubeViewer/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{ stdenv, fetchFromGitHub, buildPerlPackage, shortenPerlShebang, LWP, LWPProtocolHttps, DataDump, JSON }:

buildPerlPackage rec {
pname = "WWW-YoutubeViewer";
version = "3.3.0";

src = fetchFromGitHub {
owner = "trizen";
repo = "youtube-viewer";
rev = version;
sha256 = "15xyrwv08fw8jmpydwzks26ipxnzliwddgyjcfqiaj0p7lwlhmx1";
};

nativeBuildInputs = stdenv.lib.optional stdenv.isDarwin shortenPerlShebang;
propagatedBuildInputs = [
LWP
LWPProtocolHttps
DataDump
JSON
];
postInstall = stdenv.lib.optionalString stdenv.isDarwin ''
shortenPerlShebang $out/bin/youtube-viewer
'';

meta = {
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 ];
};
}
11 changes: 0 additions & 11 deletions pkgs/development/perl-modules/generic/builder.sh
Original file line number Diff line number Diff line change
@@ -25,17 +25,6 @@ preConfigure() {
perl Makefile.PL PREFIX=$out INSTALLDIRS=site $makeMakerFlags PERL=$(type -P perl) FULLPERL=\"$fullperl/bin/perl\"
}


postFixup() {
# If a user installs a Perl package, she probably also wants its
# dependencies in the user environment (since Perl modules don't
# have something like an RPATH, so the only way to find the
# dependencies is to have them in the PERL5LIB variable).
if test -e $out/nix-support/propagated-build-inputs; then
ln -s $out/nix-support/propagated-build-inputs $out/nix-support/propagated-user-env-packages
fi
}

if test -n "$perlPreHook"; then
eval "$perlPreHook"
fi
42 changes: 42 additions & 0 deletions pkgs/development/perl-modules/ham/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{ lib, buildPerlPackage, fetchFromGitHub, makeWrapper, openssh, GitRepository, URI, XMLMini }:

buildPerlPackage {
pname = "ham-unstable";
version = "2019-01-22";

src = fetchFromGitHub {
owner = "kernkonzept";
repo = "ham";
rev = "37c2e4e8b8bd779ba0f8c48a3c6ba34bad860b92";
sha256 = "0h5r5256niskypl4g1j2573wqi0nn0mai5p04zsa06xrgyjqcy2j";
};

outputs = [ "out" ];

buildInputs = [ makeWrapper ];
propagatedBuildInputs = [ openssh GitRepository URI XMLMini ];

preConfigure = ''
patchShebangs .
touch Makefile.PL
rm -f Makefile
'';

installPhase = ''
mkdir -p $out/lib $out/bin
cp -r . $out/lib/ham
makeWrapper $out/lib/ham/ham $out/bin/ham --argv0 ham \
--prefix PATH : ${openssh}/bin
'';

doCheck = false;

meta = {
description = "A tool to manage big projects consisting of multiple loosely-coupled git repositories";
homepage = https://github.com/kernkonzept/ham;
license = "unknown"; # should be gpl2, but not quite sure
maintainers = with lib.maintainers; [ aw ];
platforms = lib.platforms.unix;
};
}
Loading