Compare commits

..

No commits in common. "db643399fe9dc08c95e6d3ae018b271d45e30238" and "a83e74bae18f2019fc9d7edc180287acff38a621" have entirely different histories.

2 changed files with 27 additions and 51 deletions

1
.envrc
View file

@ -1 +0,0 @@
use flake || use nix

View file

@ -222,58 +222,35 @@
nixpkgs, nixpkgs,
home-manager, home-manager,
... ...
} @ inputs: let } @ inputs: {
pkgs = self.inputs.nixpkgs.legacyPackages.x86_64-linux;
lib = self.inputs.nixpkgs.lib;
in {
formatter = { formatter = {
x86_64-linux = self.packages.x86_64-linux.hand7sfmt; x86_64-linux = nixpkgs.legacyPackages.x86_64-linux.writeShellApplication {
}; name = "hand7sfmt";
runtimeInputs = with nixpkgs.legacyPackages.x86_64-linux; [
alejandra
statix
deadnix
];
packages = { text = ''
x86_64-linux = { ${nixpkgs.lib.getExe nixpkgs.legacyPackages.x86_64-linux.alejandra} \
hand7sfmt = pkgs.writeShellApplication { --experimental-config \
name = "hand7sfmt"; ${nixpkgs.legacyPackages.x86_64-linux.writeText "alejandra.toml" ''
runtimeInputs = with pkgs; [ indentation = "FourSpaces"
alejandra ''} \
statix --check \
deadnix ${self} && ${nixpkgs.lib.getExe nixpkgs.legacyPackages.x86_64-linux.statix} \
]; check \
--config \
text = '' ${nixpkgs.legacyPackages.x86_64-linux.writeText "statix.toml" ''
${lib.getExe pkgs.alejandra} \ disabled = [
--experimental-config \ "empty_pattern"
${pkgs.writeText "alejandra.toml" '' ]
indentation = "FourSpaces" ''} \
''} \ ${self} && ${nixpkgs.lib.getExe nixpkgs.legacyPackages.x86_64-linux.deadnix} \
--check \ --fail \
${self}; \ ${self}
${lib.getExe pkgs.statix} \ '';
check \
--config \
${pkgs.writeText "statix.toml" ''
disabled = [
"empty_pattern"
]
''} \
${self}; \
${lib.getExe pkgs.deadnix} \
--fail \
${self};
'';
};
};
};
devShells = {
x86_64-linux = {
default = pkgs.mkShell {
buildInputs = with pkgs; [
alejandra
statix
deadnix
];
};
}; };
}; };