nano: patch for darwin

This commit is contained in:
Eric Seidel 2015-03-27 12:05:19 -07:00
parent f0742a4bfb
commit 7f0e6b76ff

View File

@ -23,6 +23,10 @@ stdenv.mkDerivation rec {
${optionalString enableTiny "--enable-tiny"}
'';
postPatch = stdenv.lib.optionalString stdenv.isDarwin ''
substituteInPlace src/text.c --replace "__time_t" "time_t"
'';
meta = {
homepage = http://www.nano-editor.org/;
description = "A small, user-friendly console text editor";