Skip to content
Snippets Groups Projects
  1. Sep 18, 2017
  2. Sep 14, 2017
  3. Sep 11, 2017
    • Eelco Dolstra's avatar
      Merge pull request #1562 from peti/master · 359ede1d
      Eelco Dolstra authored
      docker: update to Nix 1.11.14
      359ede1d
    • Eelco Dolstra's avatar
      nix why-depends: Add option to show all edges causing a dependency · fc0ded34
      Eelco Dolstra authored
      For example, without --all:
      
        $ nix why-depends nixpkgs.nixUnstable nixpkgs.libssh2
        /nix/store/s9n5gvj2l49b4n19nz6xl832654nf7n7-nix-1.12pre5511_c94f3d55
        └───lib/libnixstore.so: …/lib:/nix/store/w9ykqpl5v0r3vfwsgn408jqhs72cx96x-curl-7.55.0/lib…
            => /nix/store/w9ykqpl5v0r3vfwsgn408jqhs72cx96x-curl-7.55.0
            └───lib/libcurl.la: …ib -L/nix/store/4mbayl1y5hpjbjzkx8ndyhkv98kqw1wi-libssh2-1.8.0/l…
                => /nix/store/4mbayl1y5hpjbjzkx8ndyhkv98kqw1wi-libssh2-1.8.0
      
      but with --all:
      
        $ nix why-depends -a nixpkgs.nixUnstable nixpkgs.libssh2
        /nix/store/s9n5gvj2l49b4n19nz6xl832654nf7n7-nix-1.12pre5511_c94f3d55
        ├───lib/libnixstore.so: …/lib:/nix/store/w9ykqpl5v0r3vfwsgn408jqhs72cx96x-curl-7.55.0/lib…
        │   => /nix/store/w9ykqpl5v0r3vfwsgn408jqhs72cx96x-curl-7.55.0
        │   └───lib/libcurl.la: …ib -L/nix/store/4mbayl1y5hpjbjzkx8ndyhkv98kqw1wi-libssh2-1.8.0/l…
        │       lib/libcurl.so.4.4.0: …/lib:/nix/store/4mbayl1y5hpjbjzkx8ndyhkv98kqw1wi-libssh2-1.8.0/l…
        │       => /nix/store/4mbayl1y5hpjbjzkx8ndyhkv98kqw1wi-libssh2-1.8.0
        └───lib/libnixstore.so: …/lib:/nix/store/bx2i9vi76lps6w9rr73fxf6my31s4dg5-aws-sdk-cpp-1.0…
            => /nix/store/bx2i9vi76lps6w9rr73fxf6my31s4dg5-aws-sdk-cpp-1.0.153
            └───lib/libaws-cpp-sdk-core.so: …e.so./nix/store/w9ykqpl5v0r3vfwsgn408jqhs72cx96x-curl-7.55.0/lib…
                lib/libaws-cpp-sdk-s3.so: …/lib:/nix/store/w9ykqpl5v0r3vfwsgn408jqhs72cx96x-curl-7.55.0/lib…
                => /nix/store/w9ykqpl5v0r3vfwsgn408jqhs72cx96x-curl-7.55.0
      fc0ded34
    • Peter Simons's avatar
      docker: update to Nix 1.11.14 · 1511f013
      Peter Simons authored
      - Use the latest Nix version 1.11.14.
      
      - Attempts to download the Nix installation tarball from http://nixos.org
        redirect to https these days, which wget doesn't support unless OpenSSL is
        available.
      
      - Use addgroup and adduser commands to create the Nix build users.
      
      - Link the Nix profile script into /etc/profile.d, where it's run
        automatically.
      
      - Dropped installation of bash and tar. Neither tool is essential for running
        Nix.
      
      Use the command "docker build -t nix . && docker run -it --rm nix sh -"
      to build and run the Nix docker container.
      1511f013
  4. Sep 10, 2017
    • Eelco Dolstra's avatar
      Add command "nix why-depends" · d41c5eb1
      Eelco Dolstra authored
      This command shows why a package has another package in its runtime
      closure. For example, to see why VLC has libdrm.dev in its closure:
      
        $ nix why-depends nixpkgs.vlc nixpkgs.libdrm.dev
        /nix/store/g901z9pcj0n5yy5n6ykxk3qm4ina1d6z-vlc-2.2.5.1:
          lib/libvlccore.so.8.0.0: …nfig:/nix/store/405lmx6jl8lp0ad1vrr6j498chrqhz8g-libdrm-2.4.75-d…
      
        /nix/store/s3nm7kd8hlcg0facn2q1ff2n7wrwdi2l-mesa-noglu-17.0.7-dev:
          nix-support/propagated-native-build-inputs: …-dev /nix/store/405lmx6jl8lp0ad1vrr6j498chrqhz8g-libdrm-2.4.75-d…
      
      Thus, VLC's lib/libvlccore.so.8.0.0 as well as mesa-noglu's
      nix-support/propagated-native-build-inputs cause the dependency.
      d41c5eb1
    • Eelco Dolstra's avatar
      Typo · 8af704ee
      Eelco Dolstra authored
      8af704ee
    • Eelco Dolstra's avatar
      nix build: Only download the requested derivation outputs · ad228d84
      Eelco Dolstra authored
      Also some refactoring.
      ad228d84
  5. Sep 08, 2017
  6. Sep 07, 2017
  7. Sep 06, 2017
  8. Sep 05, 2017
    • Eelco Dolstra's avatar
      Add automatic garbage collection · 0b606aad
      Eelco Dolstra authored
      Nix can now automatically run the garbage collector during builds or
      while adding paths to the store. The option "min-free = <bytes>"
      specifies that Nix should run the garbage collector whenever free
      space in the Nix store drops below <bytes>. It will then delete
      garbage until "max-free" bytes are available.
      
      Garbage collection during builds is asynchronous; running builds are
      not paused and new builds are not blocked. However, there also is a
      synchronous GC run prior to the first build/substitution.
      
      Currently, no old GC roots are deleted (as in "nix-collect-garbage
      -d").
      0b606aad
    • Eelco Dolstra's avatar
      GC: Don't delete own temproots file · b932ea58
      Eelco Dolstra authored
      Since file locks are per-process rather than per-file-descriptor, the
      garbage collector would always acquire a lock on its own temproots
      file and conclude that it's stale.
      b932ea58
  9. Sep 01, 2017
  10. Aug 31, 2017
Loading