2 pkgs = import <nixpkgs> { };
4 pkgs.runCommand "diagnostics-multiuser" { } ''
6 # no cache: ${toString builtins.currentTime}
7 # For reproducibility, nix always uses nixbld group:
8 # https://github.com/NixOS/nix/blob/1dd29d7aebae706f3e90a18bbfae727f2ed03c70/src/libstore/build.cc#L1896-L1908
9 test "$(groups)" == "nixbld"