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,
home-manager,
...
} @ inputs: let
pkgs = self.inputs.nixpkgs.legacyPackages.x86_64-linux;
lib = self.inputs.nixpkgs.lib;
in {
} @ inputs: {
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 = {
x86_64-linux = {
hand7sfmt = pkgs.writeShellApplication {
name = "hand7sfmt";
runtimeInputs = with pkgs; [
alejandra
statix
deadnix
];
text = ''
${lib.getExe pkgs.alejandra} \
--experimental-config \
${pkgs.writeText "alejandra.toml" ''
indentation = "FourSpaces"
''} \
--check \
${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
];
};
text = ''
${nixpkgs.lib.getExe nixpkgs.legacyPackages.x86_64-linux.alejandra} \
--experimental-config \
${nixpkgs.legacyPackages.x86_64-linux.writeText "alejandra.toml" ''
indentation = "FourSpaces"
''} \
--check \
${self} && ${nixpkgs.lib.getExe nixpkgs.legacyPackages.x86_64-linux.statix} \
check \
--config \
${nixpkgs.legacyPackages.x86_64-linux.writeText "statix.toml" ''
disabled = [
"empty_pattern"
]
''} \
${self} && ${nixpkgs.lib.getExe nixpkgs.legacyPackages.x86_64-linux.deadnix} \
--fail \
${self}
'';
};
};