Skip to content
Snippets Groups Projects
  1. Sep 22, 2020
    • regnat's avatar
      Disable `FORTIFY_SOURCE` when compiling without optims · 97b51547
      regnat authored
      Otherwise the build is cluttered with
      
      ```
      /nix/store/fwpn2f7a4iqszyydw7ag61zlnp6xk5d3-glibc-2.30-dev/include/features.h:382:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
        382 | #  warning _FORTIFY_SOURCE requires compiling with optimization (-O)
            |    ^~~~~~~
      ```
      
      when building with `OPTIMIZE=0`
      97b51547
  2. Sep 21, 2020
  3. 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
    • Maximilian Bosch's avatar
      libfetchers/github: allow `url` attribute · 2bcf8cbe
      Maximilian Bosch authored
      Since 108debef we allow a
      `url`-attribute for the `github`-fetcher to fetch tarballs from
      self-hosted `gitlab`/`github` instances.
      
      However it's not used when defining e.g. a flake-input
      
          foobar = {
              type = "github";
              url = "gitlab.myserver";
              /* ... */
          }
      
      and breaks with an evaluation-error:
      
          error: --- Error --------------------------------------nix
          unsupported input attribute 'url'
          (use '--show-trace' to show detailed location information)
      
      This patch allows flake-inputs to be fetched from self-hosted instances
      as well.
      2bcf8cbe
    • Eelco Dolstra's avatar
      nix build: find() -> get() · 958bf571
      Eelco Dolstra authored
      find() returns an iterator so "!attr" doesn't work.
      958bf571
  4. Sep 17, 2020
  5. Sep 16, 2020
Loading