nix-super/doc/manual
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 Merge remote-tracking branch 'origin/master' into markdown 2020-08-17 13:43:39 +02:00
src nix-prefetch-url: Add --executable flag 2020-09-18 19:09:45 +03:00
book.toml Improve margins between sections 2020-08-19 12:31:18 +02:00
custom.css Improve margins between sections 2020-08-19 12:31:18 +02:00
generate-builtins.nix jq -> nix 2020-09-16 14:58:06 +02:00
generate-manpage.nix jq -> nix 2020-09-16 14:58:06 +02:00
generate-options.nix jq -> nix 2020-09-16 14:58:06 +02:00
highlight.pack.js Enable syntax highlighting 2020-07-31 15:43:25 +02:00
local.mk Fix doc generation 2020-09-16 16:56:28 +02:00
quote-literals.xsl Generate release notes again 2014-03-12 14:24:29 +01:00
utils.nix jq -> nix 2020-09-16 14:58:06 +02:00