lix/doc/manual/src/command-ref
Bryan Richter 5fe375a8f1
nix-prefetch-url: Add --executable flag
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.
2020-09-18 19:09:45 +03:00
..
command-ref.md Convert commands 2020-07-23 18:27:12 +02:00
conf-file-prefix.md Generate the nix.conf docs from the source code 2020-08-19 18:28:04 +02:00
env-common.md Enable syntax highlighting 2020-07-31 15:43:25 +02:00
experimental-commands.md Start generation of the nix.1 manpage 2020-08-17 19:33:18 +02:00
files.md Convert nix.conf manpage 2020-07-23 18:27:11 +02:00
main-commands.md Convert commands 2020-07-23 18:27:12 +02:00
nix-build.md Enable syntax highlighting 2020-07-31 15:43:25 +02:00
nix-channel.md Enable syntax highlighting 2020-07-31 15:43:25 +02:00
nix-collect-garbage.md Enable syntax highlighting 2020-07-31 15:43:25 +02:00
nix-copy-closure.md Enable syntax highlighting 2020-07-31 15:43:25 +02:00
nix-daemon.md Clean up the manpages 2020-07-24 12:56:19 +02:00
nix-env.md Enable syntax highlighting 2020-07-31 15:43:25 +02:00
nix-hash.md Enable syntax highlighting 2020-07-31 15:43:25 +02:00
nix-instantiate.md Remove the --indirect flag 2020-09-03 11:22:00 +02:00
nix-prefetch-url.md nix-prefetch-url: Add --executable flag 2020-09-18 19:09:45 +03:00
nix-shell.md console -> shell 2020-07-31 16:02:37 +02:00
nix-store.md Remove the --indirect flag 2020-09-03 11:22:00 +02:00
opt-common-syn.md Convert commands 2020-07-23 18:27:12 +02:00
opt-common.md Merge remote-tracking branch 'origin/master' into markdown 2020-08-31 14:24:26 +02:00
opt-inst-syn.md Convert commands 2020-07-23 18:27:12 +02:00
utilities.md Use mdbook 2020-07-23 18:26:48 +02:00