nano: 2.6.2 -> 2.6.3

Add patch to make Darwin happy & fix #17835
This commit is contained in:
obadz 2016-08-19 18:11:06 +01:00
parent 6c7fb93233
commit 3f783e7fd1

View File

@ -26,6 +26,15 @@ stdenv.mkDerivation rec {
${optionalString enableTiny "--enable-tiny"}
'';
patchFlags = [ "-p0" ];
patches = optional stdenv.isDarwin
(fetchurl {
name = "darwin.patch";
url = "https://trac.macports.org/browser/trunk/dports/editors/nano/files/patch-src-winio.c.diff?rev=151356&format=txt";
sha256 = "184q33irz9px2svwr2qx70zvfby5zlwlhv4k607yzsy90fq2jpdd";
});
postPatch = stdenv.lib.optionalString stdenv.isDarwin ''
substituteInPlace src/text.c --replace "__time_t" "time_t"
'';