From a748dc78fb998c0f3d42fdf5e505143982e07607 Mon Sep 17 00:00:00 2001 From: Stig Palmquist Date: Tue, 17 Oct 2023 00:33:02 +0200 Subject: [PATCH] perlPackages.Curses: fix build --- pkgs/top-level/perl-packages.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkgs/top-level/perl-packages.nix b/pkgs/top-level/perl-packages.nix index e5492162bc52..ec9f778ebbad 100644 --- a/pkgs/top-level/perl-packages.nix +++ b/pkgs/top-level/perl-packages.nix @@ -5567,8 +5567,12 @@ with self; { url = "mirror://cpan/authors/id/G/GI/GIRAFFED/Curses-1.44.tar.gz"; hash = "sha256-ou+4x8iG1pL/xNshNhx2gJoGXliOQ/rQ1n5E751CvTA="; }; + preConfigure = '' + substituteInPlace makeConfig \ + --replace '#! /usr/bin/perl' '#!${perl}/bin/perl' + ''; propagatedBuildInputs = [ pkgs.ncurses ]; - NIX_CFLAGS_LINK = "-lncurses"; + NIX_CFLAGS_LINK = "-L${pkgs.ncurses.out}/lib -lncurses"; meta = { description = "Perl bindings to ncurses"; license = with lib.licenses; [ artistic1 ];