about summary refs log tree commit diff
path: root/pkgs/build-support/fetchurl/default.nix
blob: f1b9566fb2705d04b279c02da2d75a29d7af0a0d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
{stdenv, curl}: {url, md5}:

# Note that `curl' may be `null', in case of the native stdenv.

derivation {
  name = baseNameOf (toString url);
  system = stdenv.system;
  builder = ./builder.sh;
  buildInputs = [curl];
  id = md5;
  inherit stdenv url md5;
}