Skip to content

Commit

Permalink
Run nixpkgs-fmt
Browse files Browse the repository at this point in the history
Also add formatter to flake so you can do `nix fmt`
  • Loading branch information
bouk authored and kolloch committed Oct 16, 2023
1 parent ce53eb7 commit eed2f45
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,16 @@
overlays.default = self: super: {
crate2nix = self.callPackage ./default.nix { };
};
} // flake-utils.lib.eachDefaultSystem (system: let
sources = import ./nix/sources.nix;
pkgs = import sources.nixpkgs { inherit system; };
in {
packages = rec {
crate2nix = pkgs.callPackage ./default.nix { };
default = crate2nix;
};
});
} // flake-utils.lib.eachDefaultSystem (system:
let
sources = import ./nix/sources.nix;
pkgs = import sources.nixpkgs { inherit system; };
in
{
formatter = pkgs.nixpkgs-fmt;
packages = rec {
crate2nix = pkgs.callPackage ./default.nix { };
default = crate2nix;
};
});
}

0 comments on commit eed2f45

Please sign in to comment.