adis

joined 2 years ago
MODERATOR OF
nix
 

I was a bit unhappy with the state of unit testing and wanted a better experience when hacking on https://github.com/adisbladis/pyproject.nix so I ended up forking https://github.com/nix-community/nix-eval-jobs and turned it into a test runner rather than a threaded evaluator.

My previous test suite was a Python one that first inspected the test attribute names and then fired off one Nix process per attribute. This instead uses the Nix C++ API and allows you to do the same per-attribute eval failure catching without the process overhead.

My test runs locally took 3.5s for 5 tests and are now down to 70ms.

[โ€“] adis@lemmy.blad.is 1 points 2 years ago

NixOS had some problems particularly the llvm and clang compilers that complained a lot about missing standard libraries and headers.

I think it's likely that you're trying to just add clang/llvm toolchains to your development shell like this:

pkgs.mkShell { packages = [
  llvmPackages_16.clang
]; };

But you actually want something like:

(mkShell.override { inherit (llvmPackages_16) stdenv; }) {
  packages = [ ];
}
[โ€“] adis@lemmy.blad.is 6 points 2 years ago

Open firmware is important for trusting your boot chain. Seeing their list of partners in the article makes it look like a bunch of cloud providers want to take early boot security very seriously.