Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use mirroring in NixOS not only for fetchurl. #9750

Closed
wants to merge 1 commit into from

Conversation

ts468
Copy link
Contributor

@ts468 ts468 commented Sep 9, 2015

It is just an initial mockup to discuss how the caching could
be done. It is by no way functional or even correct syntax.

It is just an initial mockup to discuss how the caching could
be done. It is by no way functional or even correct syntax.
url = head urls;
hash = outputHash;
type = outputHashAlgo;
};
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this is necessary, since this information is already available via other attributes (outputHash, urls, etc.). To distinguish fetchurl calls from other fixed-output derivations, it should be enough to have some constant (pass-through) attribute (like passthru.isFetchedURL).

Also, doesn't the use of an attribute set make derivation fail?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just wanted to collect all data that find-tarballs.nix should pass on to copy-tarballs.pl. I haven't checked whether derivation fails, thanks. Maybe I should just generate a list of attribute names?

@joachifm
Copy link
Contributor

Is still being worked on?

@joachifm joachifm closed this Nov 29, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants