anchor.diff:  { lib, stdenv, fetchurl, fetchpatch, pkg-config, glib, autoreconfHook }:
   
  -let
  -  cross = stdenv.hostPlatform != stdenv.buildPlatform;
  -in stdenv.mkDerivation (rec {
  -  name = "gamin-0.1.10";
  +stdenv.mkDerivation rec {
  +  pname = "gamin";
  +  version = "0.1.10";
   
     src = fetchurl {
  -    url = "https://www.gnome.org/~veillard/gamin/sources/${name}.tar.gz";
  +    url = "https://www.gnome.org/~veillard/gamin/sources/gamin-${version}.tar.gz";
       sha256 = "18cr51y5qacvs2fc2p1bqv32rs8bzgs6l67zhasyl45yx055y218";
     };
   
  
positive.code:     "CPPFLAGS=-D_GNU_SOURCE"
    ];
  
    patches = [ ./deadlock.patch ]
      ++ map fetchurl (import ./debian-patches.nix)
      ++ lib.optional stdenv.cc.isClang ./returnval.patch
  
negative.code:   };
  }
  
  