Skip to content
Snippets Groups Projects
  1. Sep 21, 2020
  2. Sep 18, 2020
    • Bryan Richter's avatar
      nix-prefetch-url: Add --executable flag · 5fe375a8
      Bryan Richter authored
      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.
      5fe375a8
    • Eelco Dolstra's avatar
      nix build: find() -> get() · 958bf571
      Eelco Dolstra authored
      find() returns an iterator so "!attr" doesn't work.
      958bf571
  3. Sep 17, 2020
  4. Sep 16, 2020
Loading