use nix fmt

This commit is contained in:
Pol Dellaiera 2022-12-31 00:31:44 +01:00
parent e92d560816
commit a0e83f665c
No known key found for this signature in database
GPG Key ID: D476DFE9C67467CA
3 changed files with 14 additions and 12 deletions

View File

@ -1,5 +1,5 @@
{ pkgs ? import <nixpkgs> {},
src ? ./.
{ pkgs ? import <nixpkgs> { }
, src ? ./.
}:
@ -26,7 +26,9 @@ python3.pkgs.buildPythonApplication rec {
mypy --no-warn-unused-ignores --strict nix_update tests
'';
makeWrapperArgs = [
"--prefix PATH" ":" (lib.makeBinPath [ pkgs.nixVersions.stable or nix_2_4 nixpkgs-fmt nixpkgs-review ])
"--prefix PATH"
":"
(lib.makeBinPath [ pkgs.nixVersions.stable or nix_2_4 nixpkgs-fmt nixpkgs-review ])
];
shellHook = ''
# workaround because `python setup.py develop` breaks for me

View File

@ -6,7 +6,7 @@
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system: {
formatter = nixpkgs.legacyPackages.${system}.alejandra;
formatter = nixpkgs.legacyPackages.${system}.nixpkgs-fmt;
packages = {
default = self.packages.${system}.nix-update;