You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@FRidh06bbfb6 does not cherry-pick straightforwardly on the 1.11 branch, so I'd prefer not to, sorry.
builtins.fetchTarball and <nix/fetchurl.nix> are very different in that the former doesn't rely on import-from-derivation. Import-from-derivation should generally be avoided in Nixpkgs because it causes builds at evaluation time (which fails in read-only mode, e.g. in nix-env -qa).
Activity
taktoa commentedon Jul 20, 2017
Seconded; we could really use this here at Awake Security.
taktoa commentedon Jul 20, 2017
In the mean time, you can use
(
unpack = truerequires the URL to be a NAR file)Here's a good example: https://gist.github.com/taktoa/4ec8b0cb6d07857400b07a830ad99558
FRidh commentedon Jul 21, 2017
Interesting. I knew
fetchTarballshared code path and the only difference was theunpackparameter, but I didn't know you could just import it.We could create a
fetchTarballfunction in Nixpkgs that utilizes this until Nix 1.12 is stable. @edolstra, is there any reason against doing that?edolstra commentedon Jul 21, 2017
@FRidh 06bbfb6 does not cherry-pick straightforwardly on the 1.11 branch, so I'd prefer not to, sorry.
builtins.fetchTarballand<nix/fetchurl.nix>are very different in that the former doesn't rely on import-from-derivation. Import-from-derivation should generally be avoided in Nixpkgs because it causes builds at evaluation time (which fails in read-only mode, e.g. innix-env -qa).FRidh commentedon Jul 21, 2017
Thank you for the clarification. I'm a happy user of 1.12 so I don't really mind.