File tree 19 files changed +34
-51
lines changed
19 files changed +34
-51
lines changed Original file line number Diff line number Diff line change
1
+ name : Lint
2
+ on :
3
+ pull_request :
4
+ paths-ignore :
5
+ - ' README.*'
6
+ push :
7
+ branches :
8
+ - master
9
+ paths-ignore :
10
+ - ' README.*'
11
+ workflow_dispatch :
12
+ jobs :
13
+ lint :
14
+ uses : emacs-twist/internal/.github/workflows/check.yml@master
15
+ with :
16
+ package : linters
Original file line number Diff line number Diff line change 3
3
4
4
inputs . elisp-helpers . url = "github:emacs-twist/elisp-helpers" ;
5
5
6
- outputs = { ... } @ inputs : {
6
+ outputs = inputs : {
7
7
# The APIs under lib is unstable at present. It may undergo changes in the
8
8
# future.
9
9
lib = import ./lib inputs ;
Original file line number Diff line number Diff line change 27
27
28
28
emacsBuiltinLibraries =
29
29
{
30
- stdenv ,
31
- ripgrep ,
32
- emacs ,
33
30
lib ,
34
31
} @args :
35
32
lib . pipe ( readFile ( import ../pkgs/emacs/builtins.nix args ) ) [
Original file line number Diff line number Diff line change @@ -12,8 +12,6 @@ home-manager module that provides an installation of Emacs
12
12
13
13
emacs-config = cfg . config ;
14
14
15
- configurationRevision = emacs-config . configurationRevision ;
16
-
17
15
initFile = pkgs . runCommandLocal "init.el" { } ''
18
16
mkdir -p $out
19
17
touch $out/init.el
@@ -45,7 +43,7 @@ home-manager module that provides an installation of Emacs
45
43
'' ;
46
44
47
45
desktopItem = pkgs . makeDesktopItem {
48
- name = cfg . name ;
46
+ inherit ( cfg ) name ;
49
47
inherit ( cfg . desktopItem ) desktopName mimeTypes ;
50
48
comment = "Edit text" ;
51
49
genericName = "Text Editor" ;
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ with builtins; let
3
3
go = {
4
4
data ,
5
5
rest ,
6
- } @ acc : fields : {
6
+ } : fields : {
7
7
data =
8
8
data
9
9
++ lib . pipe fields [
Original file line number Diff line number Diff line change 2
2
inputs . elisp-helpers . url = "github:emacs-twist/elisp-helpers" ;
3
3
4
4
outputs =
5
- { ... } :
5
+ _ :
6
6
{
7
7
} ;
8
8
}
Original file line number Diff line number Diff line change 21
21
type = "github" ;
22
22
} ;
23
23
} ;
24
- outputs = { ... } : { } ;
24
+ outputs = _ : { } ;
25
25
} ;
26
26
expected = ''
27
27
{ description = "description"; inputs = { bind-key = { flake = false; owner = "jwiegley"; repo = "use-package"; type = "github"; }; "bind-key+" = { flake = false; owner = "jwiegley"; repo = "use-package"; type = "github"; }; }; outputs = <LAMBDA>; }'' ;
Original file line number Diff line number Diff line change 4
4
{ lib } : let
5
5
inherit ( builtins ) isList isAttrs isFunction toJSON concatStringsSep match ;
6
6
7
- isPrimitive = v : ! ( isList v || isAttrs v || isFunction v ) ;
8
-
9
7
wrap = open : close : body : open + body + close ;
10
8
11
9
printList = v :
Original file line number Diff line number Diff line change 6
6
tail
7
7
hasAttr
8
8
filter
9
- elem
10
9
mapAttrs
11
- readFile
12
10
pathExists
13
- concatLists
14
11
isFunction
15
12
removeAttrs
16
13
attrNames
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ with builtins;
27
27
lib . pipe elpaEntries [
28
28
( lib . filterAttrs ( _ : entry : entry ? core ) )
29
29
( lib . mapAttrs (
30
- _ : { core , ...} @ entry : {
30
+ _ : { core , ...} : {
31
31
inherit inventory ;
32
32
src = args . core-src ;
33
33
doTangle = true ;
Original file line number Diff line number Diff line change 2
2
inherit
3
3
( builtins )
4
4
pathExists
5
- fetchTree
6
- replaceStrings
7
- map
8
- readDir
9
5
hasAttr
10
6
readFile
11
7
attrNames
12
8
filter
13
- all
14
9
match
15
- isString
16
- isList
17
- typeOf
18
10
length
19
11
head
20
12
toJSON
120
112
] ;
121
113
122
114
mainFile =
123
- if attrs ? mainFile
124
- then attrs . mainFile
125
- else
126
- lib . findFirst
115
+ attrs . mainFile or ( lib . findFirst
127
116
( file : baseNameOf file == ename + ".el" )
128
117
(
129
118
if length self . lispFiles > 0
136
125
Entry: ${ toJSON attrs . inventory }
137
126
''
138
127
)
139
- self . lispFiles ;
128
+ self . lispFiles ) ;
140
129
141
130
# TODO: Check https://github.com/melpa/melpa/issues/2955 on the right versioning scheme
142
131
version =
Original file line number Diff line number Diff line change 54
54
( builtins )
55
55
readFile
56
56
attrNames
57
- attrValues
58
57
concatLists
59
58
isFunction
60
59
split
61
60
filter
62
61
isString
63
62
mapAttrs
64
- match
65
- isList
66
63
isAttrs
67
64
elem
68
65
removeAttrs
151
148
}
152
149
packageInputs ;
153
150
154
- generateLockFiles = self . callPackage ./lock {
155
- inherit flakeLockFile ;
156
- } ;
151
+ generateLockFiles = self . callPackage ./lock { } ;
157
152
158
153
excludeLocalPackages = attrs : removeAttrs attrs localPackages ;
159
154
in {
Original file line number Diff line number Diff line change 1
1
{
2
2
lib ,
3
- nix ,
4
3
nixfmt-rfc-style ,
5
4
jq ,
6
5
coreutils ,
7
6
runCommandLocal ,
8
- writeTextFile ,
9
7
writeShellScript ,
10
8
writeShellApplication ,
11
- # Current version
12
- flakeLockFile ? null ,
13
9
} : {
14
10
packageInputs ,
15
11
flakeNix ? false ,
19
15
postCommand ? null ,
20
16
} :
21
17
assert ( flakeNix || archiveLock ) ; let
22
- inherit ( builtins ) toJSON attrNames mapAttrs ;
18
+ inherit ( builtins ) toJSON mapAttrs ;
23
19
24
20
archiveLockData = lib . pipe packageInputs [
25
21
( lib . filterAttrs ( _ : attrs : attrs ? archive ) )
@@ -50,7 +46,7 @@ assert (flakeNix || archiveLock); let
50
46
( lib . filterAttrs ( _ : attrs : attrs ? origin ) )
51
47
( lib . mapAttrs ( _ : { origin , ...} : origin // { flake = false ; } ) )
52
48
] ;
53
- outputs = { ... } : { } ;
49
+ outputs = _ : { } ;
54
50
} ;
55
51
archiveLock = toJSON archiveLockData ;
56
52
metadataJson = toJSON packageMetadata ;
Original file line number Diff line number Diff line change 9
9
inherit
10
10
( builtins )
11
11
mapAttrs
12
- all
13
12
hasAttr
14
13
elem
15
14
length
18
17
substring
19
18
lessThan
20
19
concatLists
21
- sort
22
20
concatStringsSep
23
21
attrNames
24
22
;
90
88
}
91
89
// status ) ) )
92
90
concatLists
93
- ( lib . groupBy ( { ename , ...} : ename ) )
94
- ( mapAttrs ( ename : statuses : {
95
- current = ( head statuses ) . current ;
91
+ ( builtins . groupBy ( { ename , ...} : ename ) )
92
+ ( mapAttrs ( _ename : statuses : {
93
+ inherit ( ( head statuses ) ) current ;
96
94
# Showing the source date may be useful, but maybe later.
97
95
#
98
96
# lastModifiedDate =
Original file line number Diff line number Diff line change 1
1
# Reverse dependencies of elisp packages
2
2
{ lib } : packageInputs : let
3
- inherit ( builtins ) attrNames hasAttr mapAttrs substring ;
3
+ inherit ( builtins ) mapAttrs substring ;
4
4
5
5
revDeps = name :
6
6
lib . concatMapAttrs (
Original file line number Diff line number Diff line change 15
15
configurationRevision ,
16
16
extraSiteStartElisp ,
17
17
} : let
18
- inherit ( builtins ) length listToAttrs ;
18
+ inherit ( builtins ) length ;
19
19
20
20
elispInputs = lib . attrVals packageNames elispPackages ;
21
21
Original file line number Diff line number Diff line change 31
31
} ;
32
32
33
33
outputs = {
34
- self ,
35
34
nixpkgs ,
36
35
nixpkgs-emacs ,
37
36
flake-utils ,
Original file line number Diff line number Diff line change 50
50
import nixpkgs {
51
51
inherit system ;
52
52
overlays = [
53
- ( final : prev : {
53
+ ( _final : _prev : {
54
54
emacsPackage = emacs-ci . packages . ${ system } . emacs-snapshot ;
55
55
} )
56
56
] ;
Original file line number Diff line number Diff line change 104
104
type = "github" ;
105
105
} ;
106
106
} ;
107
- outputs = { ... } : { } ;
107
+ outputs = _ : { } ;
108
108
}
You can’t perform that action at this time.
0 commit comments