{stdenv, fetchurl, gettext}:

stdenv.mkDerivation {
  name = "e2fsprogs-1.39";
  builder = ./builder.sh;
  src = fetchurl {
    url =  http://surfnet.dl.sourceforge.net/sourceforge/e2fsprogs/e2fsprogs-1.39.tar.gz;
    md5 = "06f7806782e357797fad1d34b7ced0c6";
  };
  configureFlags = "--enable-dynamic-e2fsck --enable-elf-shlibs";
  buildInputs = [gettext];
  patches = [./e2fsprogs-1.39_etc.patch];
}


