newsbeuter: fix perl shebang

This commit is contained in:
Jason \"Don\" O'Conal 2013-07-04 04:06:39 +02:00 committed by Rok Garbas
parent f5a130b6b3
commit 061462aef9

View file

@ -1,5 +1,5 @@
{ stdenv, fetchurl, sqlite, curl, pkgconfig, libxml2, stfl, json_c, ncurses
, gettext, libiconvOrEmpty, makeWrapper }:
, gettext, libiconvOrEmpty, makeWrapper, perl }:
stdenv.mkDerivation rec {
name = "newsbeuter-2.6";
@ -12,12 +12,13 @@ stdenv.mkDerivation rec {
buildInputs
# use gettext instead of libintlOrEmpty so we have access to the msgfmt
# command
= [ pkgconfig sqlite curl libxml2 stfl json_c ncurses gettext ]
= [ pkgconfig sqlite curl libxml2 stfl json_c ncurses gettext perl ]
++ libiconvOrEmpty
++ stdenv.lib.optional stdenv.isDarwin makeWrapper;
preBuild = ''
sed -i -e 104,108d config.sh
sed -i "1 s%^.*$%#!${perl}/bin/perl%" txt2h.pl
export LDFLAGS=-lncursesw
'';