forked from lix-project/nix-eval-jobs
Apply statix/deadnix
This commit is contained in:
parent
a1673cdc91
commit
276b68bade
|
@ -16,6 +16,12 @@
|
||||||
options = [
|
options = [
|
||||||
"-eucx"
|
"-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} "$@"
|
${pkgs.lib.getExe pkgs.nixpkgs-fmt} "$@"
|
||||||
''
|
''
|
||||||
"--"
|
"--"
|
||||||
|
|
|
@ -26,7 +26,6 @@
|
||||||
imports = [ inputs.treefmt-nix.flakeModule ];
|
imports = [ inputs.treefmt-nix.flakeModule ];
|
||||||
perSystem = { pkgs, self', ... }:
|
perSystem = { pkgs, self', ... }:
|
||||||
let
|
let
|
||||||
devShell = self'.devShells.default;
|
|
||||||
drvArgs = {
|
drvArgs = {
|
||||||
srcDir = self;
|
srcDir = self;
|
||||||
nix = if nixVersion == "unstable" then pkgs.nixUnstable else pkgs.nixVersions."nix_${nixVersion}";
|
nix = if nixVersion == "unstable" then pkgs.nixUnstable else pkgs.nixVersions."nix_${nixVersion}";
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
let
|
let
|
||||||
inherit (builtins) fromJSON readFile;
|
inherit (builtins) fromJSON readFile;
|
||||||
flakeLock = fromJSON (readFile ./flake.lock);
|
flakeLock = fromJSON (readFile ./flake.lock);
|
||||||
locked = flakeLock.nodes.nixpkgs.locked;
|
inherit (flakeLock.nodes.nixpkgs) locked;
|
||||||
nixpkgs = assert locked.type == "github"; builtins.fetchTarball {
|
nixpkgs = assert locked.type == "github"; builtins.fetchTarball {
|
||||||
url = "https://github.com/${locked.owner}/${locked.repo}/archive/${locked.rev}.tar.gz";
|
url = "https://github.com/${locked.owner}/${locked.repo}/archive/${locked.rev}.tar.gz";
|
||||||
sha256 = locked.narHash;
|
sha256 = locked.narHash;
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
inputs.nixpkgs.url = "github:NixOS/nixpkgs";
|
inputs.nixpkgs.url = "github:NixOS/nixpkgs";
|
||||||
|
|
||||||
outputs = { self, nixpkgs }:
|
outputs = { nixpkgs, ... }:
|
||||||
let
|
let
|
||||||
pkgs = nixpkgs.legacyPackages.x86_64-linux;
|
pkgs = nixpkgs.legacyPackages.x86_64-linux;
|
||||||
in
|
in
|
||||||
|
|
Loading…
Reference in a new issue