From 7f0e6b76ff9e1a548b5f251b5737b781df226e8b Mon Sep 17 00:00:00 2001 From: Eric Seidel Date: Fri, 27 Mar 2015 12:05:19 -0700 Subject: [PATCH] nano: patch for darwin --- pkgs/applications/editors/nano/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/applications/editors/nano/default.nix b/pkgs/applications/editors/nano/default.nix index 3e777207fd02..e7b96bd4b7dd 100644 --- a/pkgs/applications/editors/nano/default.nix +++ b/pkgs/applications/editors/nano/default.nix @@ -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";