lix/doc/manual/src
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
..
advanced-topics
command-ref nix-prefetch-url: Add --executable flag 2020-09-18 19:09:45 +03:00
expressions
figures
installation
package-management
release-notes docs+test: fix remaining installer downloads without -L (#4006) 2020-09-12 22:08:40 +02:00
glossary.md
hacking.md hacking.md: add --prefix flag to configure 2020-09-01 12:06:02 -07:00
introduction.md
quick-start.md
SUMMARY.md