mirror of
https://github.com/nix-community/nix-doom-emacs
synced 2025-08-01 12:17:26 -05:00
Move checks to its own file
This commit is contained in:
23
checks.nix
Normal file
23
checks.nix
Normal file
@ -0,0 +1,23 @@
|
||||
{ system }:
|
||||
{ self, nixpkgs, emacs-overlay, ... }@inputs:
|
||||
|
||||
let
|
||||
pkgs = import nixpkgs {
|
||||
inherit system;
|
||||
# we are not using emacs-overlay's flake.nix here,
|
||||
# to avoid unnecessary inputs to be added to flake.lock;
|
||||
# this means we need to import the overlay in a hack-ish way
|
||||
overlays = [ (import emacs-overlay) ];
|
||||
};
|
||||
in
|
||||
{
|
||||
init-example-el = self.outputs.package.${system} {
|
||||
doomPrivateDir = ./test/doom.d;
|
||||
dependencyOverrides = inputs;
|
||||
};
|
||||
init-example-el-emacsGit = self.outputs.package.${system} {
|
||||
doomPrivateDir = ./test/doom.d;
|
||||
dependencyOverrides = inputs;
|
||||
emacsPackages = with pkgs; emacsPackagesFor emacsGit;
|
||||
};
|
||||
}
|
23
flake.nix
23
flake.nix
@ -99,28 +99,7 @@
|
||||
package = { dependencyOverrides ? { }, ... }@args:
|
||||
pkgs.callPackage self
|
||||
(args // { dependencyOverrides = (inputs // dependencyOverrides); });
|
||||
}) // eachSystem [ "x86_64-linux" "aarch64-darwin" ] (system: {
|
||||
checks =
|
||||
let
|
||||
pkgs = import nixpkgs {
|
||||
inherit system;
|
||||
# we are not using emacs-overlay's flake.nix here,
|
||||
# to avoid unnecessary inputs to be added to flake.lock;
|
||||
# this means we need to import the overlay in a hack-ish way
|
||||
overlays = [ (import emacs-overlay) ];
|
||||
};
|
||||
in
|
||||
{
|
||||
init-example-el = self.outputs.package.${system} {
|
||||
doomPrivateDir = ./test/doom.d;
|
||||
dependencyOverrides = inputs;
|
||||
};
|
||||
init-example-el-emacsGit = self.outputs.package.${system} {
|
||||
doomPrivateDir = ./test/doom.d;
|
||||
dependencyOverrides = inputs;
|
||||
emacsPackages = with pkgs; emacsPackagesFor emacsGit;
|
||||
};
|
||||
};
|
||||
checks = import ./checks.nix { inherit system; } inputs;
|
||||
}) // {
|
||||
hmModule = import ./modules/home-manager.nix inputs;
|
||||
};
|
||||
|
Reference in New Issue
Block a user