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

implement fetchurl (as a copy of fetchTarball) #258

Closed
wants to merge 1 commit into from

Conversation

wavewave
Copy link
Contributor

implementation of fetchurl.
I found the implementation is exactly the same as fetchTarball now.

@wavewave
Copy link
Contributor Author

Before

$ dist/build/hnix/hnix --eval --expr 'builtins.fetchurl https://raw.githubusercontent.com/haskell-nix/hnix/master/LICENSE'
hnix: Could not look up attribute fetchurl in "an attr set"

and
After

$ dist/build/hnix/hnix --eval --expr 'builtins.fetchurl https://raw.githubusercontent.com/haskell-nix/hnix/master/LICENSE'
"/nix/store/2crhdsmnw0iyjzmzca3qkzd0vp8ri5jb-LICENSE"

$ cat /nix/store/2crhdsmnw0iyjzmzca3qkzd0vp8ri5jb-LICENSE 
Copyright (c) 2014, John Wiegley All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
...

@wavewave
Copy link
Contributor Author

this is not a real implementation. will work on it correctly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant