newsbeuter: patch memory leak (close #12374)

vcunat fixed the patch hash.
This commit is contained in:
Eric Sagnes 2016-01-14 13:54:11 +09:00 committed by Vladimír Čunát
parent a1be498630
commit 0eeda4e36f

View File

@ -1,5 +1,5 @@
{ stdenv, fetchurl, sqlite, curl, pkgconfig, libxml2, stfl, json-c-0-11, ncurses { stdenv, fetchurl, sqlite, curl, pkgconfig, libxml2, stfl, json-c-0-11, ncurses
, gettext, libiconv, makeWrapper, perl }: , gettext, libiconv, makeWrapper, perl, fetchpatch }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "newsbeuter-2.9"; name = "newsbeuter-2.9";
@ -22,6 +22,13 @@ stdenv.mkDerivation rec {
export LDFLAGS=-lncursesw export LDFLAGS=-lncursesw
''; '';
patches = [
(fetchpatch {
url = "https://github.com/akrennmair/newsbeuter/commit/cdacfbde9fe3ae2489fc96d35dfb7d263ab03f50.patch";
sha256 = "1lhvn63cqjpikwsr6zzndb1p5y140vvphlg85fazwx4xpzd856d9";
})
];
installFlags = [ "DESTDIR=$(out)" "prefix=" ]; installFlags = [ "DESTDIR=$(out)" "prefix=" ];
installPhase = stdenv.lib.optionalString stdenv.isDarwin '' installPhase = stdenv.lib.optionalString stdenv.isDarwin ''