forked from emacs-php/php-ts-mode
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
46 lines (42 loc) · 1.14 KB
/
flake.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
{
nixConfig = {
extra-substituters = [
"https://emacs-ci.cachix.org"
];
extra-trusted-public-keys = [
"emacs-ci.cachix.org-1:B5FVOrxhXXrOL0S+tQ7USrhjMT5iOPH+QN9q0NItom4="
];
};
inputs.emacs-ci.url = "github:purcell/nix-emacs-ci";
outputs = {
nixpkgs,
emacs-ci,
flake-utils,
...
}: let
in
flake-utils.lib.eachDefaultSystem
(system: let
pkgs = nixpkgs.legacyPackages.${system};
emacsCIWith = emacs:
(pkgs.emacs.pkgs.overrideScope'
(_: _: {
inherit emacs;
}))
.withPackages (epkgs: [
(epkgs.treesit-grammars.with-grammars (grammars: [grammars.tree-sitter-php]))
]);
makeEmacsShell = emacs:
pkgs.mkShell {
buildInputs = [
(emacsCIWith emacs)
];
};
in {
devShells.emacs-snapshot =
makeEmacsShell emacs-ci.packages.${system}.emacs-snapshot;
devShells.emacs-release-snapshot =
makeEmacsShell emacs-ci.packages.${system}.emacs-release-snapshot;
devShells.emacs-29-1 = makeEmacsShell emacs-ci.packages.${system}.emacs-29-1;
});
}