Hi,

On 04/30/2010 10:47 PM, Yury G. Kudryashov wrote:

> I've just commited support for "restricted downloads" in fetchurl. The idea 
> is that you can write
> src = fetchurl {
>   url = "http://restricted.noltd/download.html";;
>   name = "my_restricted_src.zip";
>   restricted = true;
>   sha256 = "myhash";
> };

This is an abuse of fetchurl.  You should have a different fixed-output
derivation function that always fails (say, `requireFile { name = ...; sha256 =
...; errorMessage = ...; }')  - there is no need to use fetchurl for this 
purpose.

-- 
Eelco Dolstra | http://www.st.ewi.tudelft.nl/~dolstra/
_______________________________________________
nix-dev mailing list
[email protected]
https://mail.cs.uu.nl/mailman/listinfo/nix-dev

Reply via email to