nix: Refactor checkedShellScript's inRootDir to workingDir

This allows more flexible control over the working directory. Values for workingDir must always start
with a / and will then be relative to the repo root.
This commit is contained in:
Wolfgang Walther
2024-02-18 13:10:00 +01:00
committed by Wolfgang Walther
parent 75a86ba873
commit e110fdbd2c
10 changed files with 37 additions and 34 deletions
+3 -3
View File
@@ -17,7 +17,7 @@ let
{
name = "postgrest-style";
docs = "Automatically format Haskell, Nix and Python files.";
inRootDir = true;
workingDir = "/";
}
''
# Format Nix files
@@ -39,7 +39,7 @@ let
{
name = "postgrest-style-check";
docs = "Check whether postgrest-style results in any uncommited changes.";
inRootDir = true;
workingDir = "/";
}
''
${style}
@@ -54,7 +54,7 @@ let
{
name = "postgrest-lint";
docs = "Lint all Haskell files, bash scripts and github workflows.";
inRootDir = true;
workingDir = "/";
}
''
echo "Checking consistency of import aliases in Haskell code..."