nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ stdenv, fetchurl, ncurses, groff }:
2
3stdenv.mkDerivation {
4
5 name = "wiggle-1.2";
6
7 src = fetchurl {
8 url = "https://github.com/neilbrown/wiggle/archive/v1.2.tar.gz";
9 sha256 = "1gckj0zv2xznzg7i70p9dfmkhdpdg3953msi4gg5h6mpmmiiiwrw";
10 };
11
12 buildInputs = [ ncurses groff ];
13
14 configurePhase = ''
15 makeFlagsArray=( CFLAGS="-I. -O3"
16 STRIP="-s"
17 INSTALL="install"
18 BINDIR="$out/bin"
19 MANDIR="$out/share/man"
20 )
21 patchShebangs .
22 '';
23
24 meta = {
25 homepage = http://blog.neil.brown.name/category/wiggle/;
26 description = "Tool for applying patches with conflicts";
27
28 longDescription = ''
29 Wiggle applies patches to a file in a similar manner to the patch(1)
30 program. The distinctive difference is, however, that wiggle will
31 attempt to apply a patch even if the "before" part of the patch doesn't
32 match the target file perfectly. This is achieved by breaking the file
33 and patch into words and finding the best alignment of words in the file
34 with words in the patch. Once this alignment has been found, any
35 differences (word-wise) in the patch are applied to the file as best as
36 possible. Also, wiggle will (in some cases) detect changes that have
37 already been applied, and will ignore them.
38 '';
39
40 license = stdenv.lib.licenses.gpl2Plus;
41 platforms = stdenv.lib.platforms.all;
42 };
43
44}