From 012313f2532e4809dd2cd9051ee046dae43c6aab Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 24 May 2016 20:58:55 +0200 Subject: [PATCH] Term::ReadLine::Gnu: Fix finding libncursesw Fixes Cannot do `initialize' in Term::ReadLine::Gnu at /nix/store/8kld1l6cn75lh0csw8wq6zbccallkr73-nixos-test-driver/bin/.nixos-test-driver-wrapped line 115. when running NixOS VM tests interactively. --- pkgs/top-level/perl-packages.nix | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/pkgs/top-level/perl-packages.nix b/pkgs/top-level/perl-packages.nix index cba7bd5538d8..81fa050faa86 100644 --- a/pkgs/top-level/perl-packages.nix +++ b/pkgs/top-level/perl-packages.nix @@ -11707,13 +11707,13 @@ let self = _self // overrides; _self = with self; { }; TermReadLineGnu = buildPerlPackage rec { - name = "Term-ReadLine-Gnu-1.26"; + name = "Term-ReadLine-Gnu-1.31"; src = fetchurl { url = "mirror://cpan/authors/id/H/HA/HAYASHI/${name}.tar.gz"; - sha256 = "1s2dvjbh501c04s5hpf17mwirslmhqmsymg3ri4hcvh5yvp7bw7q"; + sha256 = "42174b4bc9d3881502d527fc7c8bd1c0a4b266c2f0bbee012e9a604999418f3b"; }; buildInputs = [ pkgs.readline pkgs.ncurses ]; - NIX_CFLAGS_LINK = "-lreadline"; + NIX_CFLAGS_LINK = "-lreadline -lncursesw"; # For some crazy reason Makefile.PL doesn't generate a Makefile if # AUTOMATED_TESTING is set. @@ -11728,6 +11728,12 @@ let self = _self // overrides; _self = with self; { # Tests don't work because they require /dev/tty. doCheck = false; + + meta = { + homepage = http://sourceforge.net/projects/perl-trg/; + description = "Perl extension for the GNU Readline/History Library"; + license = with stdenv.lib.licenses; [ artistic1 gpl1Plus ]; + }; }; TermShellUI = buildPerlPackage rec {