Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: b116a1c65c34
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: e25ab373db83
Choose a head ref
  • 2 commits
  • 3 files changed
  • 1 contributor

Commits on May 31, 2017

  1. Copy the full SHA
    1c0b50c View commit details
  2. wiggle: initial version 1.0

    Wiggle is a tool for applying patches with conflicts.
    peti committed May 31, 2017
    1

    Unverified

    This user has not yet uploaded their public signing key.
    Copy the full SHA
    e25ab37 View commit details
Showing with 48 additions and 3 deletions.
  1. +3 −3 pkgs/development/tools/quilt/default.nix
  2. +43 −0 pkgs/development/tools/wiggle/default.nix
  3. +2 −0 pkgs/top-level/all-packages.nix
6 changes: 3 additions & 3 deletions pkgs/development/tools/quilt/default.nix
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
{ stdenv, fetchurl, pkgs}:

with pkgs;
{ stdenv, fetchurl, makeWrapper, bash, perl, diffstat, diffutils, patch, findutils }:

stdenv.mkDerivation rec {

name = "quilt-0.65";

src = fetchurl {
@@ -31,4 +30,5 @@ stdenv.mkDerivation rec {
license = stdenv.lib.licenses.gpl2Plus;
platforms = stdenv.lib.platforms.all;
};

}
43 changes: 43 additions & 0 deletions pkgs/development/tools/wiggle/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{ stdenv, fetchurl, ncurses, groff }:

stdenv.mkDerivation {

name = "wiggle-1.0";

src = fetchurl {
url = "https://github.com/neilbrown/wiggle/archive/v1.0.tar.gz";
sha256 = "0552dkdvl001b2jasj0jwb69s7zy6wbc8gcysqj69b4qgl9c54cs";
};

buildInputs = [ ncurses groff ];

configurePhase = ''
makeFlagsArray=( CFLAGS="-I. -O3"
INSTALL="install"
BINDIR="$out/bin"
MANDIR="$out/share/man"
)
patchShebangs .
'';

meta = {
homepage = http://blog.neil.brown.name/category/wiggle/;
description = "Tool for applying patches with conflicts";

longDescription = ''
Wiggle applies patches to a file in a similar manner to the patch(1)
program. The distinctive difference is, however, that wiggle will
attempt to apply a patch even if the "before" part of the patch doesn't
match the target file perfectly. This is achieved by breaking the file
and patch into words and finding the best alignment of words in the file
with words in the patch. Once this alignment has been found, any
differences (word-wise) in the patch are applied to the file as best as
possible. Also, wiggle will (in some cases) detect changes that have
already been applied, and will ignore them.
'';

license = stdenv.lib.licenses.gpl2Plus;
platforms = stdenv.lib.platforms.all;
};

}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
@@ -3800,6 +3800,8 @@ with pkgs;

quilt = callPackage ../development/tools/quilt { };

wiggle = callPackage ../development/tools/wiggle { };

radamsa = callPackage ../tools/security/radamsa { };

radarr = callPackage ../servers/radarr { };