flake.nix: run nixfmt

This commit is contained in:
ckie
2022-01-01 04:48:36 +02:00
parent ce3c1ac7c4
commit 19b494b62d

View File

@@ -54,7 +54,7 @@
explain-pause-mode.flake = false; explain-pause-mode.flake = false;
nix-straight.url = "github:nix-community/nix-straight.el"; nix-straight.url = "github:nix-community/nix-straight.el";
nix-straight.flake = false; nix-straight.flake = false;
nose.url= "github:emacsattic/nose"; nose.url = "github:emacsattic/nose";
nose.flake = false; nose.flake = false;
ob-racket.url = "github:xchrishawk/ob-racket"; ob-racket.url = "github:xchrishawk/ob-racket";
ob-racket.flake = false; ob-racket.flake = false;
@@ -70,7 +70,8 @@
revealjs.flake = false; revealjs.flake = false;
rotate-text.url = "github:debug-ito/rotate-text.el"; rotate-text.url = "github:debug-ito/rotate-text.el";
rotate-text.flake = false; rotate-text.flake = false;
format-all.url = "github:lassik/emacs-format-all-the-code/47d862d40a088ca089c92cd393c6dca4628f87d3"; format-all.url =
"github:lassik/emacs-format-all-the-code/47d862d40a088ca089c92cd393c6dca4628f87d3";
format-all.flake = false; format-all.flake = false;
nixpkgs.url = "nixpkgs/nixpkgs-unstable"; nixpkgs.url = "nixpkgs/nixpkgs-unstable";
@@ -78,28 +79,25 @@
}; };
outputs = { self, nixpkgs, flake-utils, ... }@inputs: outputs = { self, nixpkgs, flake-utils, ... }@inputs:
let let inherit (flake-utils.lib) eachDefaultSystem eachSystem;
inherit (flake-utils.lib) eachDefaultSystem eachSystem; in eachDefaultSystem (system:
in let pkgs = import nixpkgs { inherit system; };
eachDefaultSystem in {
(system: devShell = pkgs.mkShell {
let buildInputs =
pkgs = import nixpkgs { inherit system; }; [ (pkgs.python3.withPackages (ps: with ps; [ PyGithub ])) ];
in
{
devShell = pkgs.mkShell { buildInputs = [ (pkgs.python3.withPackages (ps: with ps; [ PyGithub ])) ]; };
package = { dependencyOverrides ? { }, ...}@args:
pkgs.callPackage self (
args // { dependencyOverrides = (inputs // dependencyOverrides); }
);
}) //
eachSystem [ "x86_64-linux" ]
(system: {
checks = {
init-example-el = self.outputs.package.${system} { doomPrivateDir = ./test/doom.d; dependencyOverrides = inputs; };
}; };
}) // package = { dependencyOverrides ? { }, ... }@args:
{ pkgs.callPackage self
(args // { dependencyOverrides = (inputs // dependencyOverrides); });
}) // eachSystem [ "x86_64-linux" ] (system: {
checks = {
init-example-el = self.outputs.package.${system} {
doomPrivateDir = ./test/doom.d;
dependencyOverrides = inputs;
};
};
}) // {
hmModule = import ./modules/home-manager.nix inputs; hmModule = import ./modules/home-manager.nix inputs;
}; };
} }