nano: upstream patch fixes build on MacOS
fixes https://github.com/NixOS/nixpkgs/issues/74840
This commit is contained in:
parent
cc6cf0a96a
commit
58b75b9a05
@ -38,6 +38,15 @@ in stdenv.mkDerivation rec {
|
|||||||
(stdenv.lib.enableFeature enableTiny "tiny")
|
(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 = ''
|
postInstall = ''
|
||||||
cp ${nixSyntaxHighlight}/nix.nanorc $out/share/nano/
|
cp ${nixSyntaxHighlight}/nix.nanorc $out/share/nano/
|
||||||
'';
|
'';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user