5fe375a8f1
pkgs.fetchurl supports an executable argument, which is especially nice when downloading a large executable. This patch adds the same option to nix-prefetch-url. I have tested this to work on the simple case of prefetching a little executable: 1. nix-prefetch-url --executable https://my/little/script 2. Paste the hash into a pkgs.fetchurl-based package, script-pkg.nix 3. Delete the output from the store to avoid any misidentified artifacts 4. Realise the package script-pkg.nix 5. Run the executable I repeated the above while using --name, as well. I suspect --executable would have no meaningful effect if combined with --unpack, but I have not tried it. |
||
---|---|---|
.. | ||
command-ref.md | ||
conf-file-prefix.md | ||
env-common.md | ||
experimental-commands.md | ||
files.md | ||
main-commands.md | ||
nix-build.md | ||
nix-channel.md | ||
nix-collect-garbage.md | ||
nix-copy-closure.md | ||
nix-daemon.md | ||
nix-env.md | ||
nix-hash.md | ||
nix-instantiate.md | ||
nix-prefetch-url.md | ||
nix-shell.md | ||
nix-store.md | ||
opt-common-syn.md | ||
opt-common.md | ||
opt-inst-syn.md | ||
utilities.md |