mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-19 03:14:03 +00:00
fetchfile: remove unused file
This commit is contained in:
parent
c60b3e4bfc
commit
cc523714a6
@ -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
|
@ -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;
|
||||
}
|
Loading…
Reference in New Issue
Block a user