You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
427 B
Nix
23 lines
427 B
Nix
2 years ago
|
{
|
||
|
runCommandNoCC,
|
||
|
gofumpt,
|
||
|
alejandra,
|
||
|
python3,
|
||
|
treefmt,
|
||
|
}:
|
||
|
runCommandNoCC "treefmt" {
|
||
|
nativeBuildInputs = [
|
||
|
gofumpt
|
||
|
treefmt
|
||
|
alejandra
|
||
|
python3.pkgs.flake8
|
||
|
python3.pkgs.black
|
||
|
];
|
||
|
} ''
|
||
|
# keep timestamps so that treefmt is able to detect mtime changes
|
||
|
cp --no-preserve=mode --preserve=timestamps -r ${../..} source
|
||
|
cd source
|
||
|
HOME=$TMPDIR treefmt --no-cache --fail-on-change
|
||
|
touch $out
|
||
|
''
|