diff --git a/pkgs/build-support/fetchfile/builder.sh b/pkgs/build-support/fetchfile/builder.sh deleted file mode 100644 index b849491fc5a..00000000000 --- a/pkgs/build-support/fetchfile/builder.sh +++ /dev/null @@ -1,11 +0,0 @@ -source $stdenv/setup - -echo "copying $pathname into $out..." - -cp "$pathname" "$out" || exit 1 - -actual=$(md5sum -b $out | cut -c1-32) -if test "$actual" != "$md5"; then - echo "hash is $actual, expected $md5" - exit 1 -fi diff --git a/pkgs/build-support/fetchfile/default.nix b/pkgs/build-support/fetchfile/default.nix deleted file mode 100644 index 685c1e69520..00000000000 --- a/pkgs/build-support/fetchfile/default.nix +++ /dev/null @@ -1,11 +0,0 @@ -{stdenv}: {pathname, md5 ? "", sha256 ? ""}: stdenv.mkDerivation { - name = baseNameOf (toString pathname); - builder = ./builder.sh; - pathname = pathname; -} // if (sha256 == "") then { - md5 = (stdenv.lib.fetchMD5warn "fetchfile" pathname md5); - id = md5; -} else { - sha256 = sha256; - id = sha256; -}