Merge pull request #75157 from bergey/nano-fix-build-MacOS
nano: upstream patch fixes build on MacOS
commit8f3ca4ec1686251bab083c37d0a4e96f45bc495f
authorMatthew Bauer <mjbauer95@gmail.com>
dateTue 10 Dec 2019, 15:32 (7 years ago)
parent4ee7f4858b75b9
pkgs/applications/editors/nano/default.nix+9
@@ -38,6 +38,15 @@ in stdenv.mkDerivation rec {
3838 (stdenv.lib.enableFeature enableTiny "tiny")
3939 ];
4040
41+ patches = [
42+ (fetchurl {
43+ # fix compilation on macOS, where 'st_mtim' is unknown
44+ # upstream patch not in 4.6
45+ url = "https://git.savannah.gnu.org/cgit/nano.git/patch/?id=f516cddce749c3bf938271ef3182b9169ac8cbcc";
46+ sha256 = "0gqymvr5vxxypr7y3sm252rsi4gjqp597l01x0lkxyvxsn45a4sx";
47+ })
48+ ];
49+
4150 postInstall = ''
4251 cp ${nixSyntaxHighlight}/nix.nanorc $out/share/nano/
4352 '';