2024-01-11 16:51:30 +00:00
|
|
|
{
|
2024-01-09 07:47:02 +00:00
|
|
|
perSystem = { pkgs, lib, ... }: {
|
2024-01-11 16:51:30 +00:00
|
|
|
# a script that executes all other checks
|
|
|
|
packages.impure-checks = pkgs.writeShellScriptBin "impure-checks" ''
|
|
|
|
#!${pkgs.bash}/bin/bash
|
|
|
|
set -euo pipefail
|
|
|
|
|
|
|
|
export PATH="${lib.makeBinPath [
|
|
|
|
pkgs.gitMinimal
|
|
|
|
pkgs.nix
|
|
|
|
pkgs.rsync # needed to have rsync installed on the dummy ssh server
|
|
|
|
]}"
|
|
|
|
ROOT=$(git rev-parse --show-toplevel)
|
|
|
|
cd "$ROOT/pkgs/clan-cli"
|
|
|
|
nix develop "$ROOT#clan-cli" -c bash -c "TMPDIR=/tmp python -m pytest -m impure ./tests $@"
|
|
|
|
'';
|
2023-09-22 16:32:09 +00:00
|
|
|
};
|
2023-08-26 22:18:17 +00:00
|
|
|
}
|