aboutsummaryrefslogtreecommitdiff
path: root/pkgs/applications/editors/nano/default.nix
diff options
context:
space:
mode:
authorDaniel Bergey <bergey@teallabs.org>2019-12-07 09:08:56 -0500
committerDaniel Bergey <bergey@teallabs.org>2019-12-07 09:10:57 -0500
commit58b75b9a05c6bf0e54d89850086c1d4848366af4 (patch)
tree4106410c0061cc1d6952aa822352e0553a1171f1 /pkgs/applications/editors/nano/default.nix
parentcc6cf0a96a627e678ffc996a8f9d1416200d6c81 (diff)
nano: upstream patch fixes build on MacOS
fixes https://github.com/NixOS/nixpkgs/issues/74840
Diffstat (limited to '')
-rw-r--r--pkgs/applications/editors/nano/default.nix9
1 files changed, 9 insertions, 0 deletions
diff --git a/pkgs/applications/editors/nano/default.nix b/pkgs/applications/editors/nano/default.nix
index 6f29946d77a8..7b2992201fc7 100644
--- a/pkgs/applications/editors/nano/default.nix
+++ b/pkgs/applications/editors/nano/default.nix
@@ -38,6 +38,15 @@ in stdenv.mkDerivation rec {
(stdenv.lib.enableFeature enableTiny "tiny")
];
+ patches = [
+ (fetchurl {
+ # fix compilation on macOS, where 'st_mtim' is unknown
+ # upstream patch not in 4.6
+ url = "https://git.savannah.gnu.org/cgit/nano.git/patch/?id=f516cddce749c3bf938271ef3182b9169ac8cbcc";
+ sha256 = "0gqymvr5vxxypr7y3sm252rsi4gjqp597l01x0lkxyvxsn45a4sx";
+ })
+ ];
+
postInstall = ''
cp ${nixSyntaxHighlight}/nix.nanorc $out/share/nano/
'';