2024-04-18 22:59:39 +03:00
|
|
|
{ lib, getSystem, inputs, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
imports = [
|
|
|
|
inputs.pre-commit-hooks.flakeModule
|
|
|
|
];
|
|
|
|
|
|
|
|
perSystem = { config, pkgs, ... }: {
|
|
|
|
|
|
|
|
# https://flake.parts/options/pre-commit-hooks-nix.html#options
|
|
|
|
pre-commit.settings = {
|
|
|
|
hooks = {
|
2024-05-28 16:28:06 +03:00
|
|
|
clang-format = {
|
|
|
|
enable = true;
|
|
|
|
excludes = [
|
|
|
|
# We don't want to format test data
|
|
|
|
# ''tests/(?!nixos/).*\.nix''
|
|
|
|
''^tests/unit/[^/]*/data/.*$''
|
2024-04-18 22:59:39 +03:00
|
|
|
|
2024-05-28 16:28:06 +03:00
|
|
|
# Don't format vendored code
|
|
|
|
''^src/toml11/.*''
|
|
|
|
''^doc/manual/redirects\.js$''
|
|
|
|
''^doc/manual/theme/highlight\.js$''
|
2024-01-23 22:36:44 +02:00
|
|
|
|
2024-05-28 16:28:06 +03:00
|
|
|
# We haven't applied formatting to these files yet
|
|
|
|
''^doc/manual/redirects\.js$''
|
|
|
|
''^doc/manual/theme/highlight\.js$''
|
|
|
|
''^precompiled-headers\.h$''
|
|
|
|
''^src/build-remote/build-remote\.cc$''
|
|
|
|
''^src/libcmd/built-path\.cc$''
|
|
|
|
''^src/libcmd/built-path\.hh$''
|
|
|
|
''^src/libcmd/command\.cc$''
|
|
|
|
''^src/libcmd/command\.hh$''
|
|
|
|
''^src/libcmd/common-eval-args\.cc$''
|
|
|
|
''^src/libcmd/common-eval-args\.hh$''
|
|
|
|
''^src/libcmd/editor-for\.cc$''
|
|
|
|
''^src/libcmd/installable-attr-path\.cc$''
|
|
|
|
''^src/libcmd/installable-attr-path\.hh$''
|
|
|
|
''^src/libcmd/installable-derived-path\.cc$''
|
|
|
|
''^src/libcmd/installable-derived-path\.hh$''
|
|
|
|
''^src/libcmd/installable-flake\.cc$''
|
|
|
|
''^src/libcmd/installable-flake\.hh$''
|
|
|
|
''^src/libcmd/installable-value\.cc$''
|
|
|
|
''^src/libcmd/installable-value\.hh$''
|
|
|
|
''^src/libcmd/installables\.cc$''
|
|
|
|
''^src/libcmd/installables\.hh$''
|
|
|
|
''^src/libcmd/legacy\.hh$''
|
|
|
|
''^src/libcmd/markdown\.cc$''
|
|
|
|
''^src/libcmd/misc-store-flags\.cc$''
|
|
|
|
''^src/libcmd/repl-interacter\.cc$''
|
|
|
|
''^src/libcmd/repl-interacter\.hh$''
|
|
|
|
''^src/libcmd/repl\.cc$''
|
|
|
|
''^src/libcmd/repl\.hh$''
|
|
|
|
''^src/libexpr-c/nix_api_expr\.cc$''
|
|
|
|
''^src/libexpr-c/nix_api_external\.cc$''
|
|
|
|
''^src/libexpr/attr-path\.cc$''
|
|
|
|
''^src/libexpr/attr-path\.hh$''
|
|
|
|
''^src/libexpr/attr-set\.cc$''
|
|
|
|
''^src/libexpr/attr-set\.hh$''
|
|
|
|
''^src/libexpr/eval-cache\.cc$''
|
|
|
|
''^src/libexpr/eval-cache\.hh$''
|
|
|
|
''^src/libexpr/eval-error\.cc$''
|
|
|
|
''^src/libexpr/eval-inline\.hh$''
|
|
|
|
''^src/libexpr/eval-settings\.cc$''
|
|
|
|
''^src/libexpr/eval-settings\.hh$''
|
|
|
|
''^src/libexpr/eval\.cc$''
|
|
|
|
''^src/libexpr/eval\.hh$''
|
|
|
|
''^src/libexpr/flake/config\.cc$''
|
|
|
|
''^src/libexpr/flake/flake\.cc$''
|
|
|
|
''^src/libexpr/flake/flake\.hh$''
|
|
|
|
''^src/libexpr/flake/flakeref\.cc$''
|
|
|
|
''^src/libexpr/flake/flakeref\.hh$''
|
|
|
|
''^src/libexpr/flake/lockfile\.cc$''
|
|
|
|
''^src/libexpr/flake/lockfile\.hh$''
|
|
|
|
''^src/libexpr/flake/url-name\.cc$''
|
|
|
|
''^src/libexpr/function-trace\.cc$''
|
|
|
|
''^src/libexpr/gc-small-vector\.hh$''
|
|
|
|
''^src/libexpr/get-drvs\.cc$''
|
|
|
|
''^src/libexpr/get-drvs\.hh$''
|
|
|
|
''^src/libexpr/json-to-value\.cc$''
|
|
|
|
''^src/libexpr/nixexpr\.cc$''
|
|
|
|
''^src/libexpr/nixexpr\.hh$''
|
|
|
|
''^src/libexpr/parser-state\.hh$''
|
|
|
|
''^src/libexpr/pos-table\.hh$''
|
|
|
|
''^src/libexpr/primops\.cc$''
|
|
|
|
''^src/libexpr/primops\.hh$''
|
|
|
|
''^src/libexpr/primops/context\.cc$''
|
|
|
|
''^src/libexpr/primops/fetchClosure\.cc$''
|
|
|
|
''^src/libexpr/primops/fetchMercurial\.cc$''
|
|
|
|
''^src/libexpr/primops/fetchTree\.cc$''
|
|
|
|
''^src/libexpr/primops/fromTOML\.cc$''
|
|
|
|
''^src/libexpr/print-ambiguous\.cc$''
|
|
|
|
''^src/libexpr/print-ambiguous\.hh$''
|
|
|
|
''^src/libexpr/print-options\.hh$''
|
|
|
|
''^src/libexpr/print\.cc$''
|
|
|
|
''^src/libexpr/print\.hh$''
|
|
|
|
''^src/libexpr/search-path\.cc$''
|
|
|
|
''^src/libexpr/symbol-table\.hh$''
|
|
|
|
''^src/libexpr/value-to-json\.cc$''
|
|
|
|
''^src/libexpr/value-to-json\.hh$''
|
|
|
|
''^src/libexpr/value-to-xml\.cc$''
|
|
|
|
''^src/libexpr/value-to-xml\.hh$''
|
|
|
|
''^src/libexpr/value\.hh$''
|
|
|
|
''^src/libexpr/value/context\.cc$''
|
|
|
|
''^src/libexpr/value/context\.hh$''
|
|
|
|
''^src/libfetchers/attrs\.cc$''
|
|
|
|
''^src/libfetchers/cache\.cc$''
|
|
|
|
''^src/libfetchers/cache\.hh$''
|
|
|
|
''^src/libfetchers/fetch-settings\.cc$''
|
|
|
|
''^src/libfetchers/fetch-settings\.hh$''
|
|
|
|
''^src/libfetchers/fetch-to-store\.cc$''
|
|
|
|
''^src/libfetchers/fetchers\.cc$''
|
|
|
|
''^src/libfetchers/fetchers\.hh$''
|
|
|
|
''^src/libfetchers/filtering-source-accessor\.cc$''
|
|
|
|
''^src/libfetchers/filtering-source-accessor\.hh$''
|
|
|
|
''^src/libfetchers/fs-source-accessor\.cc$''
|
|
|
|
''^src/libfetchers/fs-source-accessor\.hh$''
|
|
|
|
''^src/libfetchers/git-utils\.cc$''
|
|
|
|
''^src/libfetchers/git-utils\.hh$''
|
|
|
|
''^src/libfetchers/github\.cc$''
|
|
|
|
''^src/libfetchers/indirect\.cc$''
|
|
|
|
''^src/libfetchers/memory-source-accessor\.cc$''
|
|
|
|
''^src/libfetchers/path\.cc$''
|
|
|
|
''^src/libfetchers/registry\.cc$''
|
|
|
|
''^src/libfetchers/registry\.hh$''
|
|
|
|
''^src/libfetchers/tarball\.cc$''
|
|
|
|
''^src/libfetchers/tarball\.hh$''
|
2024-06-01 23:39:59 +03:00
|
|
|
''^src/libfetchers/git\.cc$''
|
|
|
|
''^src/libfetchers/mercurial\.cc$''
|
2024-05-28 16:28:06 +03:00
|
|
|
''^src/libmain/common-args\.cc$''
|
|
|
|
''^src/libmain/common-args\.hh$''
|
|
|
|
''^src/libmain/loggers\.cc$''
|
|
|
|
''^src/libmain/loggers\.hh$''
|
|
|
|
''^src/libmain/progress-bar\.cc$''
|
|
|
|
''^src/libmain/shared\.cc$''
|
|
|
|
''^src/libmain/shared\.hh$''
|
|
|
|
''^src/libmain/unix/stack\.cc$''
|
|
|
|
''^src/libstore/binary-cache-store\.cc$''
|
|
|
|
''^src/libstore/binary-cache-store\.hh$''
|
|
|
|
''^src/libstore/build-result\.hh$''
|
|
|
|
''^src/libstore/builtins\.hh$''
|
|
|
|
''^src/libstore/builtins/buildenv\.cc$''
|
|
|
|
''^src/libstore/builtins/buildenv\.hh$''
|
|
|
|
''^src/libstore/common-protocol-impl\.hh$''
|
|
|
|
''^src/libstore/common-protocol\.cc$''
|
|
|
|
''^src/libstore/common-protocol\.hh$''
|
|
|
|
''^src/libstore/content-address\.cc$''
|
|
|
|
''^src/libstore/content-address\.hh$''
|
|
|
|
''^src/libstore/daemon\.cc$''
|
|
|
|
''^src/libstore/daemon\.hh$''
|
|
|
|
''^src/libstore/derivations\.cc$''
|
|
|
|
''^src/libstore/derivations\.hh$''
|
|
|
|
''^src/libstore/derived-path-map\.cc$''
|
|
|
|
''^src/libstore/derived-path-map\.hh$''
|
|
|
|
''^src/libstore/derived-path\.cc$''
|
|
|
|
''^src/libstore/derived-path\.hh$''
|
|
|
|
''^src/libstore/downstream-placeholder\.cc$''
|
|
|
|
''^src/libstore/downstream-placeholder\.hh$''
|
|
|
|
''^src/libstore/dummy-store\.cc$''
|
|
|
|
''^src/libstore/export-import\.cc$''
|
|
|
|
''^src/libstore/filetransfer\.cc$''
|
|
|
|
''^src/libstore/filetransfer\.hh$''
|
|
|
|
''^src/libstore/gc-store\.hh$''
|
|
|
|
''^src/libstore/globals\.cc$''
|
|
|
|
''^src/libstore/globals\.hh$''
|
|
|
|
''^src/libstore/http-binary-cache-store\.cc$''
|
|
|
|
''^src/libstore/legacy-ssh-store\.cc$''
|
|
|
|
''^src/libstore/legacy-ssh-store\.hh$''
|
|
|
|
''^src/libstore/length-prefixed-protocol-helper\.hh$''
|
|
|
|
''^src/libstore/linux/personality\.cc$''
|
|
|
|
''^src/libstore/linux/personality\.hh$''
|
|
|
|
''^src/libstore/local-binary-cache-store\.cc$''
|
|
|
|
''^src/libstore/local-fs-store\.cc$''
|
|
|
|
''^src/libstore/local-fs-store\.hh$''
|
|
|
|
''^src/libstore/log-store\.cc$''
|
|
|
|
''^src/libstore/log-store\.hh$''
|
|
|
|
''^src/libstore/machines\.cc$''
|
|
|
|
''^src/libstore/machines\.hh$''
|
|
|
|
''^src/libstore/make-content-addressed\.cc$''
|
|
|
|
''^src/libstore/make-content-addressed\.hh$''
|
|
|
|
''^src/libstore/misc\.cc$''
|
|
|
|
''^src/libstore/names\.cc$''
|
|
|
|
''^src/libstore/names\.hh$''
|
|
|
|
''^src/libstore/nar-accessor\.cc$''
|
|
|
|
''^src/libstore/nar-accessor\.hh$''
|
|
|
|
''^src/libstore/nar-info-disk-cache\.cc$''
|
|
|
|
''^src/libstore/nar-info-disk-cache\.hh$''
|
|
|
|
''^src/libstore/nar-info\.cc$''
|
|
|
|
''^src/libstore/nar-info\.hh$''
|
|
|
|
''^src/libstore/outputs-spec\.cc$''
|
|
|
|
''^src/libstore/outputs-spec\.hh$''
|
|
|
|
''^src/libstore/parsed-derivations\.cc$''
|
|
|
|
''^src/libstore/path-info\.cc$''
|
|
|
|
''^src/libstore/path-info\.hh$''
|
|
|
|
''^src/libstore/path-references\.cc$''
|
|
|
|
''^src/libstore/path-regex\.hh$''
|
|
|
|
''^src/libstore/path-with-outputs\.cc$''
|
|
|
|
''^src/libstore/path\.cc$''
|
|
|
|
''^src/libstore/path\.hh$''
|
|
|
|
''^src/libstore/pathlocks\.cc$''
|
|
|
|
''^src/libstore/pathlocks\.hh$''
|
|
|
|
''^src/libstore/profiles\.cc$''
|
|
|
|
''^src/libstore/profiles\.hh$''
|
|
|
|
''^src/libstore/realisation\.cc$''
|
|
|
|
''^src/libstore/realisation\.hh$''
|
|
|
|
''^src/libstore/remote-fs-accessor\.cc$''
|
|
|
|
''^src/libstore/remote-fs-accessor\.hh$''
|
|
|
|
''^src/libstore/remote-store-connection\.hh$''
|
|
|
|
''^src/libstore/remote-store\.cc$''
|
|
|
|
''^src/libstore/remote-store\.hh$''
|
|
|
|
''^src/libstore/s3-binary-cache-store\.cc$''
|
|
|
|
''^src/libstore/s3\.hh$''
|
|
|
|
''^src/libstore/serve-protocol-impl\.cc$''
|
|
|
|
''^src/libstore/serve-protocol-impl\.hh$''
|
|
|
|
''^src/libstore/serve-protocol\.cc$''
|
|
|
|
''^src/libstore/serve-protocol\.hh$''
|
|
|
|
''^src/libstore/sqlite\.cc$''
|
|
|
|
''^src/libstore/sqlite\.hh$''
|
|
|
|
''^src/libstore/ssh-store-config\.hh$''
|
|
|
|
''^src/libstore/ssh-store\.cc$''
|
|
|
|
''^src/libstore/ssh\.cc$''
|
|
|
|
''^src/libstore/ssh\.hh$''
|
|
|
|
''^src/libstore/store-api\.cc$''
|
|
|
|
''^src/libstore/store-api\.hh$''
|
|
|
|
''^src/libstore/store-dir-config\.hh$''
|
2024-05-28 00:54:02 +03:00
|
|
|
''^src/libstore/build/derivation-goal\.cc$''
|
|
|
|
''^src/libstore/build/derivation-goal\.hh$''
|
2024-05-28 16:28:06 +03:00
|
|
|
''^src/libstore/build/drv-output-substitution-goal\.cc$''
|
|
|
|
''^src/libstore/build/drv-output-substitution-goal\.hh$''
|
|
|
|
''^src/libstore/build/entry-points\.cc$''
|
|
|
|
''^src/libstore/build/goal\.cc$''
|
|
|
|
''^src/libstore/build/goal\.hh$''
|
|
|
|
''^src/libstore/unix/build/hook-instance\.cc$''
|
|
|
|
''^src/libstore/unix/build/local-derivation-goal\.cc$''
|
|
|
|
''^src/libstore/unix/build/local-derivation-goal\.hh$''
|
|
|
|
''^src/libstore/build/substitution-goal\.cc$''
|
|
|
|
''^src/libstore/build/substitution-goal\.hh$''
|
|
|
|
''^src/libstore/build/worker\.cc$''
|
|
|
|
''^src/libstore/build/worker\.hh$''
|
2024-06-01 23:39:59 +03:00
|
|
|
''^src/libstore/builtins/fetchurl\.cc$''
|
|
|
|
''^src/libstore/builtins/unpack-channel\.cc$''
|
2024-05-28 16:28:06 +03:00
|
|
|
''^src/libstore/gc\.cc$''
|
2024-06-01 23:39:59 +03:00
|
|
|
''^src/libstore/local-overlay-store\.cc$''
|
|
|
|
''^src/libstore/local-overlay-store\.hh$''
|
2024-05-28 16:28:06 +03:00
|
|
|
''^src/libstore/local-store\.cc$''
|
|
|
|
''^src/libstore/local-store\.hh$''
|
|
|
|
''^src/libstore/unix/user-lock\.cc$''
|
|
|
|
''^src/libstore/unix/user-lock\.hh$''
|
|
|
|
''^src/libstore/optimise-store\.cc$''
|
|
|
|
''^src/libstore/unix/pathlocks\.cc$''
|
|
|
|
''^src/libstore/posix-fs-canonicalise\.cc$''
|
|
|
|
''^src/libstore/posix-fs-canonicalise\.hh$''
|
|
|
|
''^src/libstore/uds-remote-store\.cc$''
|
|
|
|
''^src/libstore/uds-remote-store\.hh$''
|
|
|
|
''^src/libstore/windows/build\.cc$''
|
|
|
|
''^src/libstore/worker-protocol-impl\.hh$''
|
|
|
|
''^src/libstore/worker-protocol\.cc$''
|
|
|
|
''^src/libstore/worker-protocol\.hh$''
|
|
|
|
''^src/libutil-c/nix_api_util_internal\.h$''
|
|
|
|
''^src/libutil/archive\.cc$''
|
|
|
|
''^src/libutil/archive\.hh$''
|
|
|
|
''^src/libutil/args\.cc$''
|
|
|
|
''^src/libutil/args\.hh$''
|
|
|
|
''^src/libutil/args/root\.hh$''
|
|
|
|
''^src/libutil/callback\.hh$''
|
|
|
|
''^src/libutil/canon-path\.cc$''
|
|
|
|
''^src/libutil/canon-path\.hh$''
|
|
|
|
''^src/libutil/chunked-vector\.hh$''
|
|
|
|
''^src/libutil/closure\.hh$''
|
|
|
|
''^src/libutil/comparator\.hh$''
|
|
|
|
''^src/libutil/compute-levels\.cc$''
|
|
|
|
''^src/libutil/config-impl\.hh$''
|
|
|
|
''^src/libutil/config\.cc$''
|
|
|
|
''^src/libutil/config\.hh$''
|
|
|
|
''^src/libutil/current-process\.cc$''
|
|
|
|
''^src/libutil/current-process\.hh$''
|
|
|
|
''^src/libutil/english\.cc$''
|
|
|
|
''^src/libutil/english\.hh$''
|
|
|
|
''^src/libutil/environment-variables\.cc$''
|
|
|
|
''^src/libutil/error\.cc$''
|
|
|
|
''^src/libutil/error\.hh$''
|
|
|
|
''^src/libutil/exit\.hh$''
|
|
|
|
''^src/libutil/experimental-features\.cc$''
|
|
|
|
''^src/libutil/experimental-features\.hh$''
|
|
|
|
''^src/libutil/file-content-address\.cc$''
|
|
|
|
''^src/libutil/file-content-address\.hh$''
|
|
|
|
''^src/libutil/file-descriptor\.cc$''
|
|
|
|
''^src/libutil/file-descriptor\.hh$''
|
|
|
|
''^src/libutil/file-path-impl\.hh$''
|
|
|
|
''^src/libutil/file-path\.hh$''
|
|
|
|
''^src/libutil/file-system\.cc$''
|
|
|
|
''^src/libutil/file-system\.hh$''
|
|
|
|
''^src/libutil/finally\.hh$''
|
|
|
|
''^src/libutil/fmt\.hh$''
|
|
|
|
''^src/libutil/fs-sink\.cc$''
|
|
|
|
''^src/libutil/fs-sink\.hh$''
|
|
|
|
''^src/libutil/git\.cc$''
|
|
|
|
''^src/libutil/git\.hh$''
|
|
|
|
''^src/libutil/hash\.cc$''
|
|
|
|
''^src/libutil/hash\.hh$''
|
|
|
|
''^src/libutil/hilite\.cc$''
|
|
|
|
''^src/libutil/hilite\.hh$''
|
|
|
|
''^src/libutil/source-accessor\.hh$''
|
|
|
|
''^src/libutil/json-impls\.hh$''
|
|
|
|
''^src/libutil/json-utils\.cc$''
|
|
|
|
''^src/libutil/json-utils\.hh$''
|
|
|
|
''^src/libutil/linux/cgroup\.cc$''
|
|
|
|
''^src/libutil/linux/namespaces\.cc$''
|
|
|
|
''^src/libutil/logging\.cc$''
|
|
|
|
''^src/libutil/logging\.hh$''
|
|
|
|
''^src/libutil/lru-cache\.hh$''
|
|
|
|
''^src/libutil/memory-source-accessor\.cc$''
|
|
|
|
''^src/libutil/memory-source-accessor\.hh$''
|
|
|
|
''^src/libutil/pool\.hh$''
|
|
|
|
''^src/libutil/position\.cc$''
|
|
|
|
''^src/libutil/position\.hh$''
|
|
|
|
''^src/libutil/posix-source-accessor\.cc$''
|
|
|
|
''^src/libutil/posix-source-accessor\.hh$''
|
|
|
|
''^src/libutil/processes\.hh$''
|
|
|
|
''^src/libutil/ref\.hh$''
|
|
|
|
''^src/libutil/references\.cc$''
|
|
|
|
''^src/libutil/references\.hh$''
|
|
|
|
''^src/libutil/regex-combinators\.hh$''
|
|
|
|
''^src/libutil/serialise\.cc$''
|
|
|
|
''^src/libutil/serialise\.hh$''
|
|
|
|
''^src/libutil/signals\.hh$''
|
|
|
|
''^src/libutil/signature/local-keys\.cc$''
|
|
|
|
''^src/libutil/signature/local-keys\.hh$''
|
|
|
|
''^src/libutil/signature/signer\.cc$''
|
|
|
|
''^src/libutil/signature/signer\.hh$''
|
|
|
|
''^src/libutil/source-accessor\.cc$''
|
|
|
|
''^src/libutil/source-accessor\.hh$''
|
|
|
|
''^src/libutil/source-path\.cc$''
|
|
|
|
''^src/libutil/source-path\.hh$''
|
|
|
|
''^src/libutil/split\.hh$''
|
|
|
|
''^src/libutil/suggestions\.cc$''
|
|
|
|
''^src/libutil/suggestions\.hh$''
|
|
|
|
''^src/libutil/sync\.hh$''
|
|
|
|
''^src/libutil/terminal\.cc$''
|
|
|
|
''^src/libutil/terminal\.hh$''
|
|
|
|
''^src/libutil/thread-pool\.cc$''
|
|
|
|
''^src/libutil/thread-pool\.hh$''
|
|
|
|
''^src/libutil/topo-sort\.hh$''
|
|
|
|
''^src/libutil/types\.hh$''
|
|
|
|
''^src/libutil/unix/file-descriptor\.cc$''
|
|
|
|
''^src/libutil/unix/file-path\.cc$''
|
|
|
|
''^src/libutil/unix/monitor-fd\.hh$''
|
|
|
|
''^src/libutil/unix/processes\.cc$''
|
|
|
|
''^src/libutil/unix/signals-impl\.hh$''
|
|
|
|
''^src/libutil/unix/signals\.cc$''
|
|
|
|
''^src/libutil/unix-domain-socket\.cc$''
|
|
|
|
''^src/libutil/unix/users\.cc$''
|
|
|
|
''^src/libutil/url-parts\.hh$''
|
|
|
|
''^src/libutil/url\.cc$''
|
|
|
|
''^src/libutil/url\.hh$''
|
|
|
|
''^src/libutil/users\.cc$''
|
|
|
|
''^src/libutil/users\.hh$''
|
|
|
|
''^src/libutil/util\.cc$''
|
|
|
|
''^src/libutil/util\.hh$''
|
|
|
|
''^src/libutil/variant-wrapper\.hh$''
|
|
|
|
''^src/libutil/windows/environment-variables\.cc$''
|
|
|
|
''^src/libutil/windows/file-descriptor\.cc$''
|
|
|
|
''^src/libutil/windows/file-path\.cc$''
|
|
|
|
''^src/libutil/windows/processes\.cc$''
|
|
|
|
''^src/libutil/windows/users\.cc$''
|
|
|
|
''^src/libutil/windows/windows-error\.cc$''
|
|
|
|
''^src/libutil/windows/windows-error\.hh$''
|
|
|
|
''^src/libutil/xml-writer\.cc$''
|
|
|
|
''^src/libutil/xml-writer\.hh$''
|
|
|
|
''^src/nix-build/nix-build\.cc$''
|
|
|
|
''^src/nix-channel/nix-channel\.cc$''
|
|
|
|
''^src/nix-collect-garbage/nix-collect-garbage\.cc$''
|
|
|
|
''^src/nix-env/buildenv.nix$''
|
|
|
|
''^src/nix-env/nix-env\.cc$''
|
|
|
|
''^src/nix-env/user-env\.cc$''
|
|
|
|
''^src/nix-env/user-env\.hh$''
|
|
|
|
''^src/nix-instantiate/nix-instantiate\.cc$''
|
|
|
|
''^src/nix-store/dotgraph\.cc$''
|
|
|
|
''^src/nix-store/graphml\.cc$''
|
|
|
|
''^src/nix-store/nix-store\.cc$''
|
|
|
|
''^src/nix/add-to-store\.cc$''
|
|
|
|
''^src/nix/app\.cc$''
|
|
|
|
''^src/nix/build\.cc$''
|
|
|
|
''^src/nix/bundle\.cc$''
|
|
|
|
''^src/nix/cat\.cc$''
|
|
|
|
''^src/nix/config-check\.cc$''
|
|
|
|
''^src/nix/config\.cc$''
|
|
|
|
''^src/nix/copy\.cc$''
|
|
|
|
''^src/nix/derivation-add\.cc$''
|
|
|
|
''^src/nix/derivation-show\.cc$''
|
|
|
|
''^src/nix/derivation\.cc$''
|
|
|
|
''^src/nix/develop\.cc$''
|
|
|
|
''^src/nix/diff-closures\.cc$''
|
|
|
|
''^src/nix/dump-path\.cc$''
|
|
|
|
''^src/nix/edit\.cc$''
|
|
|
|
''^src/nix/eval\.cc$''
|
|
|
|
''^src/nix/flake\.cc$''
|
|
|
|
''^src/nix/fmt\.cc$''
|
|
|
|
''^src/nix/hash\.cc$''
|
|
|
|
''^src/nix/log\.cc$''
|
|
|
|
''^src/nix/ls\.cc$''
|
|
|
|
''^src/nix/main\.cc$''
|
|
|
|
''^src/nix/make-content-addressed\.cc$''
|
|
|
|
''^src/nix/nar\.cc$''
|
|
|
|
''^src/nix/optimise-store\.cc$''
|
|
|
|
''^src/nix/path-from-hash-part\.cc$''
|
|
|
|
''^src/nix/path-info\.cc$''
|
|
|
|
''^src/nix/prefetch\.cc$''
|
|
|
|
''^src/nix/profile\.cc$''
|
|
|
|
''^src/nix/realisation\.cc$''
|
|
|
|
''^src/nix/registry\.cc$''
|
|
|
|
''^src/nix/repl\.cc$''
|
|
|
|
''^src/nix/run\.cc$''
|
|
|
|
''^src/nix/run\.hh$''
|
|
|
|
''^src/nix/search\.cc$''
|
|
|
|
''^src/nix/sigs\.cc$''
|
|
|
|
''^src/nix/store-copy-log\.cc$''
|
|
|
|
''^src/nix/store-delete\.cc$''
|
|
|
|
''^src/nix/store-gc\.cc$''
|
|
|
|
''^src/nix/store-info\.cc$''
|
|
|
|
''^src/nix/store-repair\.cc$''
|
|
|
|
''^src/nix/store\.cc$''
|
|
|
|
''^src/nix/unix/daemon\.cc$''
|
|
|
|
''^src/nix/upgrade-nix\.cc$''
|
|
|
|
''^src/nix/verify\.cc$''
|
|
|
|
''^src/nix/why-depends\.cc$''
|
2024-05-27 16:40:49 +03:00
|
|
|
|
2024-05-28 16:28:06 +03:00
|
|
|
''^tests/functional/plugins/plugintest\.cc''
|
|
|
|
''^tests/functional/test-libstoreconsumer/main\.cc''
|
|
|
|
''^tests/nixos/ca-fd-leak/sender\.c''
|
|
|
|
''^tests/nixos/ca-fd-leak/smuggler\.c''
|
|
|
|
''^tests/unit/libexpr-support/tests/libexpr\.hh''
|
|
|
|
''^tests/unit/libexpr-support/tests/value/context\.cc''
|
|
|
|
''^tests/unit/libexpr-support/tests/value/context\.hh''
|
|
|
|
''^tests/unit/libexpr/derived-path\.cc''
|
|
|
|
''^tests/unit/libexpr/error_traces\.cc''
|
|
|
|
''^tests/unit/libexpr/eval\.cc''
|
|
|
|
''^tests/unit/libexpr/flake/flakeref\.cc''
|
|
|
|
''^tests/unit/libexpr/flake/url-name\.cc''
|
|
|
|
''^tests/unit/libexpr/json\.cc''
|
|
|
|
''^tests/unit/libexpr/main\.cc''
|
|
|
|
''^tests/unit/libexpr/primops\.cc''
|
|
|
|
''^tests/unit/libexpr/search-path\.cc''
|
|
|
|
''^tests/unit/libexpr/trivial\.cc''
|
|
|
|
''^tests/unit/libexpr/value/context\.cc''
|
|
|
|
''^tests/unit/libexpr/value/print\.cc''
|
|
|
|
''^tests/unit/libfetchers/public-key\.cc''
|
|
|
|
''^tests/unit/libstore-support/tests/derived-path\.cc''
|
|
|
|
''^tests/unit/libstore-support/tests/derived-path\.hh''
|
|
|
|
''^tests/unit/libstore-support/tests/libstore\.hh''
|
|
|
|
''^tests/unit/libstore-support/tests/nix_api_store\.hh''
|
|
|
|
''^tests/unit/libstore-support/tests/outputs-spec\.cc''
|
|
|
|
''^tests/unit/libstore-support/tests/outputs-spec\.hh''
|
|
|
|
''^tests/unit/libstore-support/tests/path\.cc''
|
|
|
|
''^tests/unit/libstore-support/tests/path\.hh''
|
|
|
|
''^tests/unit/libstore-support/tests/protocol\.hh''
|
|
|
|
''^tests/unit/libstore/common-protocol\.cc''
|
|
|
|
''^tests/unit/libstore/content-address\.cc''
|
|
|
|
''^tests/unit/libstore/derivation\.cc''
|
|
|
|
''^tests/unit/libstore/derived-path\.cc''
|
|
|
|
''^tests/unit/libstore/downstream-placeholder\.cc''
|
|
|
|
''^tests/unit/libstore/machines\.cc''
|
|
|
|
''^tests/unit/libstore/nar-info-disk-cache\.cc''
|
|
|
|
''^tests/unit/libstore/nar-info\.cc''
|
|
|
|
''^tests/unit/libstore/outputs-spec\.cc''
|
|
|
|
''^tests/unit/libstore/path-info\.cc''
|
|
|
|
''^tests/unit/libstore/path\.cc''
|
|
|
|
''^tests/unit/libstore/serve-protocol\.cc''
|
|
|
|
''^tests/unit/libstore/worker-protocol\.cc''
|
|
|
|
''^tests/unit/libutil-support/tests/characterization\.hh''
|
|
|
|
''^tests/unit/libutil-support/tests/hash\.cc''
|
|
|
|
''^tests/unit/libutil-support/tests/hash\.hh''
|
|
|
|
''^tests/unit/libutil/args\.cc''
|
|
|
|
''^tests/unit/libutil/canon-path\.cc''
|
|
|
|
''^tests/unit/libutil/chunked-vector\.cc''
|
|
|
|
''^tests/unit/libutil/closure\.cc''
|
|
|
|
''^tests/unit/libutil/compression\.cc''
|
|
|
|
''^tests/unit/libutil/config\.cc''
|
|
|
|
''^tests/unit/libutil/file-content-address\.cc''
|
|
|
|
''^tests/unit/libutil/git\.cc''
|
|
|
|
''^tests/unit/libutil/hash\.cc''
|
|
|
|
''^tests/unit/libutil/hilite\.cc''
|
|
|
|
''^tests/unit/libutil/json-utils\.cc''
|
|
|
|
''^tests/unit/libutil/logging\.cc''
|
|
|
|
''^tests/unit/libutil/lru-cache\.cc''
|
|
|
|
''^tests/unit/libutil/pool\.cc''
|
|
|
|
''^tests/unit/libutil/references\.cc''
|
|
|
|
''^tests/unit/libutil/suggestions\.cc''
|
|
|
|
''^tests/unit/libutil/tests\.cc''
|
|
|
|
''^tests/unit/libutil/url\.cc''
|
|
|
|
''^tests/unit/libutil/xml-writer\.cc''
|
|
|
|
];
|
|
|
|
};
|
|
|
|
shellcheck = {
|
|
|
|
enable = true;
|
|
|
|
excludes = [
|
|
|
|
# We haven't linted these files yet
|
|
|
|
''^config/install-sh$''
|
|
|
|
''^misc/systemv/nix-daemon$''
|
|
|
|
''^misc/bash/completion\.sh$''
|
|
|
|
''^misc/fish/completion\.fish$''
|
|
|
|
''^misc/zsh/completion\.zsh$''
|
|
|
|
''^scripts/check-hydra-status\.sh$''
|
|
|
|
''^scripts/create-darwin-volume\.sh$''
|
|
|
|
''^scripts/install-darwin-multi-user\.sh$''
|
|
|
|
''^scripts/install-multi-user\.sh$''
|
|
|
|
''^scripts/install-nix-from-closure\.sh$''
|
|
|
|
''^scripts/install-systemd-multi-user\.sh$''
|
|
|
|
''^src/nix/get-env\.sh$''
|
|
|
|
''^tests/functional/build\.sh$''
|
|
|
|
''^tests/functional/ca/build-dry\.sh$''
|
|
|
|
''^tests/functional/ca/build-with-garbage-path\.sh$''
|
|
|
|
''^tests/functional/ca/common\.sh$''
|
|
|
|
''^tests/functional/ca/concurrent-builds\.sh$''
|
|
|
|
''^tests/functional/ca/eval-store\.sh$''
|
|
|
|
''^tests/functional/ca/gc\.sh$''
|
|
|
|
''^tests/functional/ca/import-derivation\.sh$''
|
|
|
|
''^tests/functional/ca/new-build-cmd\.sh$''
|
|
|
|
''^tests/functional/ca/nix-shell\.sh$''
|
|
|
|
''^tests/functional/ca/post-hook\.sh$''
|
|
|
|
''^tests/functional/ca/recursive\.sh$''
|
|
|
|
''^tests/functional/ca/repl\.sh$''
|
|
|
|
''^tests/functional/ca/selfref-gc\.sh$''
|
|
|
|
''^tests/functional/ca/why-depends\.sh$''
|
|
|
|
''^tests/functional/check\.sh$''
|
2024-05-28 17:10:02 +03:00
|
|
|
''^tests/functional/common/vars-and-functions\.sh$''
|
2024-05-28 16:28:06 +03:00
|
|
|
''^tests/functional/completions\.sh$''
|
|
|
|
''^tests/functional/compute-levels\.sh$''
|
|
|
|
''^tests/functional/config\.sh$''
|
|
|
|
''^tests/functional/db-migration\.sh$''
|
|
|
|
''^tests/functional/debugger\.sh$''
|
|
|
|
''^tests/functional/dependencies\.builder0\.sh$''
|
|
|
|
''^tests/functional/dependencies\.sh$''
|
|
|
|
''^tests/functional/dump-db\.sh$''
|
|
|
|
''^tests/functional/dyn-drv/build-built-drv\.sh$''
|
|
|
|
''^tests/functional/dyn-drv/common\.sh$''
|
|
|
|
''^tests/functional/dyn-drv/dep-built-drv\.sh$''
|
|
|
|
''^tests/functional/dyn-drv/eval-outputOf\.sh$''
|
|
|
|
''^tests/functional/dyn-drv/old-daemon-error-hack\.sh$''
|
|
|
|
''^tests/functional/dyn-drv/recursive-mod-json\.sh$''
|
|
|
|
''^tests/functional/eval-store\.sh$''
|
|
|
|
''^tests/functional/eval\.sh$''
|
|
|
|
''^tests/functional/export-graph\.sh$''
|
|
|
|
''^tests/functional/export\.sh$''
|
|
|
|
''^tests/functional/extra-sandbox-profile\.sh$''
|
|
|
|
''^tests/functional/fetchClosure\.sh$''
|
|
|
|
''^tests/functional/fetchGit\.sh$''
|
|
|
|
''^tests/functional/fetchGitRefs\.sh$''
|
|
|
|
''^tests/functional/fetchGitSubmodules\.sh$''
|
|
|
|
''^tests/functional/fetchGitVerification\.sh$''
|
|
|
|
''^tests/functional/fetchMercurial\.sh$''
|
|
|
|
''^tests/functional/fetchurl\.sh$''
|
|
|
|
''^tests/functional/fixed\.builder1\.sh$''
|
|
|
|
''^tests/functional/fixed\.builder2\.sh$''
|
|
|
|
''^tests/functional/fixed\.sh$''
|
|
|
|
''^tests/functional/flakes/absolute-paths\.sh$''
|
|
|
|
''^tests/functional/flakes/check\.sh$''
|
|
|
|
''^tests/functional/flakes/common\.sh$''
|
|
|
|
''^tests/functional/flakes/config\.sh$''
|
|
|
|
''^tests/functional/flakes/develop\.sh$''
|
|
|
|
''^tests/functional/flakes/flakes\.sh$''
|
|
|
|
''^tests/functional/flakes/follow-paths\.sh$''
|
|
|
|
''^tests/functional/flakes/prefetch\.sh$''
|
|
|
|
''^tests/functional/flakes/run\.sh$''
|
|
|
|
''^tests/functional/flakes/show\.sh$''
|
|
|
|
''^tests/functional/fmt\.sh$''
|
|
|
|
''^tests/functional/fmt\.simple\.sh$''
|
|
|
|
''^tests/functional/gc-auto\.sh$''
|
|
|
|
''^tests/functional/gc-concurrent\.builder\.sh$''
|
|
|
|
''^tests/functional/gc-concurrent\.sh$''
|
|
|
|
''^tests/functional/gc-concurrent2\.builder\.sh$''
|
|
|
|
''^tests/functional/gc-non-blocking\.sh$''
|
|
|
|
''^tests/functional/gc\.sh$''
|
|
|
|
''^tests/functional/git-hashing/common\.sh$''
|
|
|
|
''^tests/functional/git-hashing/simple\.sh$''
|
|
|
|
''^tests/functional/hash-convert\.sh$''
|
|
|
|
''^tests/functional/help\.sh$''
|
|
|
|
''^tests/functional/impure-derivations\.sh$''
|
|
|
|
''^tests/functional/impure-env\.sh$''
|
|
|
|
''^tests/functional/impure-eval\.sh$''
|
|
|
|
''^tests/functional/install-darwin\.sh$''
|
|
|
|
''^tests/functional/lang-test-infra\.sh$''
|
|
|
|
''^tests/functional/lang\.sh$''
|
|
|
|
''^tests/functional/lang/framework\.sh$''
|
|
|
|
''^tests/functional/legacy-ssh-store\.sh$''
|
|
|
|
''^tests/functional/linux-sandbox\.sh$''
|
|
|
|
''^tests/functional/local-overlay-store/add-lower-inner\.sh$''
|
|
|
|
''^tests/functional/local-overlay-store/add-lower\.sh$''
|
|
|
|
''^tests/functional/local-overlay-store/bad-uris\.sh$''
|
|
|
|
''^tests/functional/local-overlay-store/build-inner\.sh$''
|
|
|
|
''^tests/functional/local-overlay-store/build\.sh$''
|
|
|
|
''^tests/functional/local-overlay-store/check-post-init-inner\.sh$''
|
|
|
|
''^tests/functional/local-overlay-store/check-post-init\.sh$''
|
|
|
|
''^tests/functional/local-overlay-store/common\.sh$''
|
|
|
|
''^tests/functional/local-overlay-store/delete-duplicate-inner\.sh$''
|
|
|
|
''^tests/functional/local-overlay-store/delete-duplicate\.sh$''
|
|
|
|
''^tests/functional/local-overlay-store/delete-refs-inner\.sh$''
|
|
|
|
''^tests/functional/local-overlay-store/delete-refs\.sh$''
|
|
|
|
''^tests/functional/local-overlay-store/gc-inner\.sh$''
|
|
|
|
''^tests/functional/local-overlay-store/gc\.sh$''
|
|
|
|
''^tests/functional/local-overlay-store/optimise-inner\.sh$''
|
|
|
|
''^tests/functional/local-overlay-store/optimise\.sh$''
|
|
|
|
''^tests/functional/local-overlay-store/redundant-add-inner\.sh$''
|
|
|
|
''^tests/functional/local-overlay-store/redundant-add\.sh$''
|
|
|
|
''^tests/functional/local-overlay-store/remount\.sh$''
|
|
|
|
''^tests/functional/local-overlay-store/stale-file-handle-inner\.sh$''
|
|
|
|
''^tests/functional/local-overlay-store/stale-file-handle\.sh$''
|
|
|
|
''^tests/functional/local-overlay-store/verify-inner\.sh$''
|
|
|
|
''^tests/functional/local-overlay-store/verify\.sh$''
|
|
|
|
''^tests/functional/logging\.sh$''
|
|
|
|
''^tests/functional/misc\.sh$''
|
|
|
|
''^tests/functional/multiple-outputs\.sh$''
|
|
|
|
''^tests/functional/nar-access\.sh$''
|
|
|
|
''^tests/functional/nested-sandboxing\.sh$''
|
|
|
|
''^tests/functional/nested-sandboxing/command\.sh$''
|
|
|
|
''^tests/functional/nix-build\.sh$''
|
|
|
|
''^tests/functional/nix-channel\.sh$''
|
|
|
|
''^tests/functional/nix-collect-garbage-d\.sh$''
|
|
|
|
''^tests/functional/nix-copy-ssh-common\.sh$''
|
|
|
|
''^tests/functional/nix-copy-ssh-ng\.sh$''
|
|
|
|
''^tests/functional/nix-copy-ssh\.sh$''
|
|
|
|
''^tests/functional/nix-daemon-untrusting\.sh$''
|
|
|
|
''^tests/functional/nix-profile\.sh$''
|
|
|
|
''^tests/functional/nix-shell\.sh$''
|
|
|
|
''^tests/functional/nix_path\.sh$''
|
|
|
|
''^tests/functional/optimise-store\.sh$''
|
|
|
|
''^tests/functional/output-normalization\.sh$''
|
|
|
|
''^tests/functional/parallel\.builder\.sh$''
|
|
|
|
''^tests/functional/parallel\.sh$''
|
|
|
|
''^tests/functional/pass-as-file\.sh$''
|
|
|
|
''^tests/functional/path-from-hash-part\.sh$''
|
|
|
|
''^tests/functional/path-info\.sh$''
|
|
|
|
''^tests/functional/placeholders\.sh$''
|
|
|
|
''^tests/functional/plugins\.sh$''
|
|
|
|
''^tests/functional/post-hook\.sh$''
|
|
|
|
''^tests/functional/pure-eval\.sh$''
|
|
|
|
''^tests/functional/push-to-store-old\.sh$''
|
|
|
|
''^tests/functional/push-to-store\.sh$''
|
|
|
|
''^tests/functional/read-only-store\.sh$''
|
|
|
|
''^tests/functional/readfile-context\.sh$''
|
|
|
|
''^tests/functional/recursive\.sh$''
|
|
|
|
''^tests/functional/referrers\.sh$''
|
|
|
|
''^tests/functional/remote-store\.sh$''
|
|
|
|
''^tests/functional/repair\.sh$''
|
|
|
|
''^tests/functional/restricted\.sh$''
|
|
|
|
''^tests/functional/search\.sh$''
|
|
|
|
''^tests/functional/secure-drv-outputs\.sh$''
|
|
|
|
''^tests/functional/selfref-gc\.sh$''
|
|
|
|
''^tests/functional/shell\.sh$''
|
|
|
|
''^tests/functional/shell\.shebang\.sh$''
|
|
|
|
''^tests/functional/signing\.sh$''
|
|
|
|
''^tests/functional/simple\.builder\.sh$''
|
|
|
|
''^tests/functional/simple\.sh$''
|
|
|
|
''^tests/functional/ssh-relay\.sh$''
|
|
|
|
''^tests/functional/store-info\.sh$''
|
|
|
|
''^tests/functional/structured-attrs\.sh$''
|
|
|
|
''^tests/functional/substitute-with-invalid-ca\.sh$''
|
|
|
|
''^tests/functional/suggestions\.sh$''
|
|
|
|
''^tests/functional/supplementary-groups\.sh$''
|
|
|
|
''^tests/functional/tarball\.sh$''
|
|
|
|
''^tests/functional/test-infra\.sh$''
|
|
|
|
''^tests/functional/test-libstoreconsumer\.sh$''
|
|
|
|
''^tests/functional/timeout\.sh$''
|
|
|
|
''^tests/functional/toString-path\.sh$''
|
|
|
|
''^tests/functional/user-envs-migration\.sh$''
|
|
|
|
''^tests/functional/user-envs-test-case\.sh$''
|
|
|
|
''^tests/functional/user-envs\.builder\.sh$''
|
|
|
|
''^tests/functional/user-envs\.sh$''
|
|
|
|
''^tests/functional/why-depends\.sh$''
|
|
|
|
''^tests/functional/zstd\.sh$''
|
|
|
|
''^tests/unit/libutil/data/git/check-data\.sh$''
|
|
|
|
];
|
|
|
|
};
|
|
|
|
# TODO: nixfmt, https://github.com/NixOS/nixfmt/issues/153
|
|
|
|
};
|
2024-04-18 22:59:39 +03:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
# We'll be pulling from this in the main flake
|
|
|
|
flake.getSystem = getSystem;
|
|
|
|
}
|