Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nix
base: 958bf5712377
Choose a base ref
...
head repository: NixOS/nix
compare: d93b373594e0
Choose a head ref
  • 2 commits
  • 2 files changed
  • 2 contributors

Commits on Sep 18, 2020

  1. 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.
    chreekat committed Sep 18, 2020
    Copy the full SHA
    5fe375a View commit details
    Browse the repository at this point in the history

Commits on Sep 21, 2020

  1. Merge pull request #4036 from chreekat/b/prefetch-executable

    nix-prefetch-url: Add --executable flag
    edolstra committed Sep 21, 2020
    Copy the full SHA
    d93b373 View commit details
    Browse the repository at this point in the history