{ lib, stdenv, fetchurl, libgcrypt, pkgconfig, glib, linuxHeaders }:

stdenv.mkDerivation rec {
  name = "duperemove-${version}";
  version = "0.09.beta2";

  src = fetchurl {
    url = "https://github.com/markfasheh/duperemove/archive/v${version}.tar.gz";
    sha256 = "0rn7lf9rjf4ypgfwms2y7b459rri4rfn809h6wx8xl9nbm5niil4";
  };

  buildInputs = [ libgcrypt pkgconfig glib linuxHeaders ];

  makeFlags = [ "DESTDIR=$(out)" "PREFIX=" ];

  meta = {
    description = "A simple tool for finding duplicated extents and submitting them for deduplication";
    homepage = https://github.com/markfasheh/duperemove;
    license = lib.licenses.gpl2;

    maintainers = [ lib.maintainers.bluescreen303 ];
    platforms = lib.platforms.all;
  };
}

{ lib, stdenv, fetchFromGitHub, libgcrypt, pkgconfig, glib, linuxHeaders }:

stdenv.mkDerivation rec {
  name = "duperemove-${version}";
  version = "0.09.4";

  src = fetchFromGitHub {
    owner = "markfasheh";
    repo = "duperemove";
    rev = "v${version}";
    sha256 = "1d586k6rbfqb5557i1p5xq8ngbppbwpxlkw8wqm7d900a3hp36nl";
  };

  buildInputs = [ libgcrypt pkgconfig glib linuxHeaders ];

  makeFlags = [ "DESTDIR=$(out)" "PREFIX=" ];

  meta = {
    description = "A simple tool for finding duplicated extents and submitting them for deduplication";
    homepage = https://github.com/markfasheh/duperemove;
    license = lib.licenses.gpl2;

    maintainers = [ lib.maintainers.bluescreen303 ];
    platforms = lib.platforms.all;
  };
}

Update from 0.09.beta2 to 0.09.4.
duperemove: Update from 0.09.beta2 to 0.09.4.

Also switches to fetchFromGitHub to remove the need to depend on Git for
fetching the source tarball.

Signed-off-by: aszlig <ee1aa092358634f9c53f01b5a783726c9e21b35a@redmoonstudios.org>
