tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
nano: 2.6.2 -> 2.6.3
Add patch to make Darwin happy & fix #17835
obadz
9 years ago
3f783e7f
6c7fb932
+9
1 changed file
expand all
collapse all
unified
split
pkgs
applications
editors
nano
default.nix
+9
pkgs/applications/editors/nano/default.nix
···
26
26
${optionalString enableTiny "--enable-tiny"}
27
27
'';
28
28
29
29
+
patchFlags = [ "-p0" ];
30
30
+
31
31
+
patches = optional stdenv.isDarwin
32
32
+
(fetchurl {
33
33
+
name = "darwin.patch";
34
34
+
url = "https://trac.macports.org/browser/trunk/dports/editors/nano/files/patch-src-winio.c.diff?rev=151356&format=txt";
35
35
+
sha256 = "184q33irz9px2svwr2qx70zvfby5zlwlhv4k607yzsy90fq2jpdd";
36
36
+
});
37
37
+
29
38
postPatch = stdenv.lib.optionalString stdenv.isDarwin ''
30
39
substituteInPlace src/text.c --replace "__time_t" "time_t"
31
40
'';