File tree Expand file tree Collapse file tree 6 files changed +637
-80
lines changed Expand file tree Collapse file tree 6 files changed +637
-80
lines changed Original file line number Diff line number Diff line change 4
4
schedule:
5
5
- cron: '0 15 * * 1'
6
6
workflow_dispatch:
7
+ pull_request:
8
+ paths:
9
+ - dev/**
7
10
8
11
concurrency:
9
12
group: ${{ github.workflow }}-${{ github.ref }}
Original file line number Diff line number Diff line change
1
+ { inputs, ... }:
2
+ {
3
+ perSystem =
4
+ {
5
+ system,
6
+ pkgs,
7
+ self',
8
+ lib,
9
+ ...
10
+ }:
11
+ let
12
+ emacsPackages = inputs.emacs-ci.packages.${system};
13
+ in
14
+ {
15
+ _module.args.pkgs = inputs.nixpkgs.legacyPackages.${system}.extend inputs.twist.overlays.default;
16
+
17
+ devShells = {
18
+ default = pkgs.mkShell { buildInputs = [ pkgs.just ]; };
19
+ };
20
+
21
+ packages = {
22
+ default = pkgs.linkFarm "default" (
23
+ [
24
+ {
25
+ name = "default.nix";
26
+ path = pkgs.writeText "emacs-builtins-default-nix" ''{${
27
+ lib.concatMapStrings (name: "${name} = import ./${name}.nix;\n") (builtins.attrNames emacsPackages)
28
+ }}'';
29
+ }
30
+ ]
31
+ ++ (lib.mapAttrsToList (emacsName: emacsPackage: {
32
+ name = "${emacsName}.nix";
33
+ path =
34
+ pkgs.runCommand "build-${emacsName}-builtins-nix"
35
+ {
36
+ buildInputs = [ emacsPackage ];
37
+ }
38
+ ''
39
+ EMACS_VERSION="$(emacs --version \
40
+ | grep -F "GNU Emacs" \
41
+ | grep -oE "[[:digit:]]+(:?\.[[:digit:]]+)+")"
42
+ echo >>$out '{'
43
+ echo >>$out " version = \"''${EMACS_VERSION}\";"
44
+ echo >>$out ' libraries = ['
45
+ sed -e 's/^/"/' -e 's/$/"/' ${
46
+ (pkgs.emacsTwist {
47
+ inherit emacsPackage;
48
+ initFiles = [ ];
49
+ lockDir = null;
50
+ inventories = [ ];
51
+ }).builtinLibraryList
52
+ } >>$out
53
+ echo >>$out ' ];'
54
+ echo >>$out '}'
55
+ '';
56
+ }) emacsPackages)
57
+ );
58
+ };
59
+ };
60
+ }
You can’t perform that action at this time.
0 commit comments