1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-17 19:21:04 +00:00
nixpkgs/pkgs/tools/nix/info/multiuser.nix
Silvan Mosberger 65e7143039 nix-info: Format files with nixfmt
This is a rare case of a Nix file actually ending up in the build result.
We reformat this now, causing a rebuild, so that we won't cause a rebuild
in the treewide reformatting PR.
2024-08-25 04:59:04 +02:00

12 lines
356 B
Nix

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