Apply statix/deadnix

This commit is contained in:
adisbladis 2023-07-21 13:24:29 +12:00 committed by mergify[bot]
parent a1673cdc91
commit 276b68bade
4 changed files with 8 additions and 3 deletions

View file

@ -16,6 +16,12 @@
options = [
"-eucx"
''
${pkgs.lib.getExe pkgs.deadnix} --edit "$@"
for i in "$@"; do
${pkgs.lib.getExe pkgs.statix} fix "$i"
done
${pkgs.lib.getExe pkgs.nixpkgs-fmt} "$@"
''
"--"

View file

@ -26,7 +26,6 @@
imports = [ inputs.treefmt-nix.flakeModule ];
perSystem = { pkgs, self', ... }:
let
devShell = self'.devShells.default;
drvArgs = {
srcDir = self;
nix = if nixVersion == "unstable" then pkgs.nixUnstable else pkgs.nixVersions."nix_${nixVersion}";

View file

@ -2,7 +2,7 @@
let
inherit (builtins) fromJSON readFile;
flakeLock = fromJSON (readFile ./flake.lock);
locked = flakeLock.nodes.nixpkgs.locked;
inherit (flakeLock.nodes.nixpkgs) locked;
nixpkgs = assert locked.type == "github"; builtins.fetchTarball {
url = "https://github.com/${locked.owner}/${locked.repo}/archive/${locked.rev}.tar.gz";
sha256 = locked.narHash;

View file

@ -1,7 +1,7 @@
{
inputs.nixpkgs.url = "github:NixOS/nixpkgs";
outputs = { self, nixpkgs }:
outputs = { nixpkgs, ... }:
let
pkgs = nixpkgs.legacyPackages.x86_64-linux;
in