mirror of
https://github.com/Gerg-L/nixos.git
synced 2025-12-10 00:43:56 -05:00
fix mkPackages
move "lint" command to /packages
This commit is contained in:
parent
7f33afb985
commit
a132ccf4b6
4 changed files with 71 additions and 88 deletions
19
outputs.nix
19
outputs.nix
|
|
@ -18,25 +18,8 @@ lib.gerg-utils {} {
|
|||
"game-desktop"
|
||||
"media-laptop"
|
||||
];
|
||||
formatter =
|
||||
pkgs:
|
||||
pkgs.writeShellApplication {
|
||||
name = "lint";
|
||||
runtimeInputs = [
|
||||
(pkgs.nixfmt.overrideAttrs {
|
||||
version = "0.6.0-${inputs.nixfmt.shortRev}";
|
||||
|
||||
src = inputs.nixfmt;
|
||||
})
|
||||
pkgs.deadnix
|
||||
pkgs.statix
|
||||
pkgs.fd
|
||||
];
|
||||
text = ''
|
||||
fd '.*\.nix' . -x statix fix -- {} \;
|
||||
fd '.*\.nix' . -X deadnix -e -- {} \; -X nixfmt {} \;
|
||||
'';
|
||||
};
|
||||
formatter = pkgs: inputs.self.packages.${pkgs.stdenv.hostPlatform.system}.lint;
|
||||
|
||||
devShells = pkgs: {default = pkgs.mkShell {packages = [pkgs.sops];};};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue