mirror of
https://github.com/larstvei/emacs-flake.git
synced 2025-08-30 16:50:13 +00:00
Run formatter
This commit is contained in:
parent
34e0fccc16
commit
b132266c3d
24
flake.nix
24
flake.nix
@ -16,13 +16,23 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
outputs =
|
outputs =
|
||||||
{ self, nixpkgs, flake-utils, emacs-overlay, emacs-plus, emacs-config }:
|
{
|
||||||
flake-utils.lib.eachDefaultSystem (system:
|
self,
|
||||||
|
nixpkgs,
|
||||||
|
flake-utils,
|
||||||
|
emacs-overlay,
|
||||||
|
emacs-plus,
|
||||||
|
emacs-config,
|
||||||
|
}:
|
||||||
|
flake-utils.lib.eachDefaultSystem (
|
||||||
|
system:
|
||||||
let
|
let
|
||||||
pkgs = import nixpkgs {
|
pkgs = import nixpkgs {
|
||||||
inherit system;
|
inherit system;
|
||||||
overlays =
|
overlays = [
|
||||||
[ emacs-overlay.overlays.emacs emacs-overlay.overlays.package ];
|
emacs-overlay.overlays.emacs
|
||||||
|
emacs-overlay.overlays.package
|
||||||
|
];
|
||||||
};
|
};
|
||||||
patched-emacs = (pkgs.emacs-git).overrideAttrs (o: {
|
patched-emacs = (pkgs.emacs-git).overrideAttrs (o: {
|
||||||
patches = [
|
patches = [
|
||||||
@ -32,7 +42,8 @@
|
|||||||
];
|
];
|
||||||
});
|
});
|
||||||
|
|
||||||
in {
|
in
|
||||||
|
{
|
||||||
defaultPackage = pkgs.emacsWithPackagesFromUsePackage {
|
defaultPackage = pkgs.emacsWithPackagesFromUsePackage {
|
||||||
config = "${emacs-config}/init.org";
|
config = "${emacs-config}/init.org";
|
||||||
package = patched-emacs;
|
package = patched-emacs;
|
||||||
@ -46,5 +57,6 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
devShell = pkgs.mkShell { buildInputs = [ pkgs.jq ]; };
|
devShell = pkgs.mkShell { buildInputs = [ pkgs.jq ]; };
|
||||||
});
|
}
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user