Apply statix/deadnix
This commit is contained in:
parent
a1673cdc91
commit
276b68bade
|
@ -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} "$@"
|
||||
''
|
||||
"--"
|
||||
|
|
|
@ -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}";
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
inputs.nixpkgs.url = "github:NixOS/nixpkgs";
|
||||
|
||||
outputs = { self, nixpkgs }:
|
||||
outputs = { nixpkgs, ... }:
|
||||
let
|
||||
pkgs = nixpkgs.legacyPackages.x86_64-linux;
|
||||
in
|
||||
|
|
Loading…
Reference in a new issue