Skip to content
Snippets Groups Projects
  1. Mar 01, 2021
    • regnat's avatar
      Move the CA tests to a sub-directory · 259d6778
      regnat authored
      Requires a slight update to the test infra to work properly, but
      having the possibility to group tests that way makes the whole thing
      quite cleaner imho
      259d6778
  2. Feb 26, 2021
  3. Dec 03, 2020
  4. Oct 15, 2020
  5. Oct 06, 2020
  6. Sep 21, 2020
  7. Aug 28, 2020
  8. Jul 25, 2020
    • Matthew Bauer's avatar
      Allow PRECOMPILE_HEADERS in cross-compilation · 72f87710
      Matthew Bauer authored
      In cross, CXX will look like aarch64-unknown-linux-gnu-g++. We could
      run some command to check what kind of compiler it is, but for now we
      can just check if g++ is anywhere in the string. I couldn’t find any
      "ends with" for makefile, so it can be anywhere in CXX.
      72f87710
  9. Jul 03, 2020
  10. Jul 02, 2020
  11. Jun 29, 2020
  12. Jun 10, 2020
    • Matthew Bauer's avatar
      Prelink static libraries into an object file · 7eca8a16
      Matthew Bauer authored
      This combines the *.o into a big .o producing one translation unit.
      This preserve our unused static initializers, as specified in the C++
      standard:
      
        If no variable or function is odr-used from a given translation
        unit, the non-local variables defined in that translation unit may
        never be initialized (this models the behavior of an on-demand
        dynamic library).
      
      Note that this is very similar to how the --whole-archive flag works.
      One advantage of this is that users of the final .a library don’t have
      to worry about specifying --whole-archive, or that we have unused
      static initializers at all!
      7eca8a16
  13. May 08, 2020
  14. Mar 30, 2020
  15. Mar 13, 2020
  16. Dec 05, 2019
  17. Nov 07, 2019
  18. Jul 03, 2019
  19. Feb 13, 2019
  20. Apr 09, 2018
  21. Feb 08, 2018
  22. Jan 16, 2018
    • Eelco Dolstra's avatar
      Add pure evaluation mode · d4dcffd6
      Eelco Dolstra authored
      In this mode, the following restrictions apply:
      
      * The builtins currentTime, currentSystem and storePath throw an
        error.
      
      * $NIX_PATH and -I are ignored.
      
      * fetchGit and fetchMercurial require a revision hash.
      
      * fetchurl and fetchTarball require a sha256 attribute.
      
      * No file system access is allowed outside of the paths returned by
        fetch{Git,Mercurial,url,Tarball}. Thus 'nix build -f ./foo.nix' is
        not allowed.
      
      Thus, the evaluation result is completely reproducible from the
      command line arguments. E.g.
      
        nix build --pure-eval '(
          let
            nix = fetchGit { url = https://github.com/NixOS/nixpkgs.git; rev = "9c927de4b179a6dd210dd88d34bda8af4b575680"; };
            nixpkgs = fetchGit { url = https://github.com/NixOS/nixpkgs.git; ref = "release-17.09"; rev = "66b4de79e3841530e6d9c6baf98702aa1f7124e4"; };
          in (import (nix + "/release.nix") { inherit nix nixpkgs; }).build.x86_64-linux
        )'
      
      The goal is to enable completely reproducible and traceable
      evaluation. For example, a NixOS configuration could be fully
      described by a single Git commit hash. 'nixos-rebuild' would do
      something like
      
        nix build --pure-eval '(
          (import (fetchGit { url = file:///my-nixos-config; rev = "..."; })).system
        ')
      
      where the Git repository /my-nixos-config would use further fetchGit
      calls or Git externals to fetch Nixpkgs and whatever other
      dependencies it has. Either way, the commit hash would uniquely
      identify the NixOS configuration and allow it to reproduced.
      d4dcffd6
  23. Nov 07, 2017
    • Eelco Dolstra's avatar
      Show when tests are skipped · fd10f6f2
      Eelco Dolstra authored
      Also, don't depend on tput (ncurses). It's really not needed since
      ANSI escape sequences have been standardized for 35 years or so.
      fd10f6f2
  24. Oct 09, 2017
  25. Oct 06, 2017
  26. Oct 03, 2017
    • Dan Peebles's avatar
      More elegant test output · 60ecbd79
      Dan Peebles authored
      I got sick of trying to find the failures in the sea of debug output, so
      we now:
      - Hide test output unless it fails
      - Sprinkle in some simple color
      - Pad results for a more tabular look
      
      If Nix is getting a more friendly user interface, we might as well get
      a friendlier developer interface, right? :)
      60ecbd79
  27. Apr 21, 2017
  28. Nov 25, 2016
  29. Oct 06, 2015
  30. Dec 09, 2014
  31. Feb 04, 2014
  32. Jan 09, 2014
Loading