File tree Expand file tree Collapse file tree 2 files changed +21
-17
lines changed Expand file tree Collapse file tree 2 files changed +21
-17
lines changed Original file line number Diff line number Diff line change 21
21
flake-parts . lib . mkFlake { inherit inputs ; } (
22
22
{
23
23
lib ,
24
- config ,
25
- withSystem ,
26
24
...
27
25
} :
28
26
{
36
34
++ inputs . nixpkgs . lib . optional ( inputs . treefmt-nix ? flakeModule ) ./formatter/flake-module.nix
37
35
++ inputs . nixpkgs . lib . optionals ( inputs . hercules-ci-effects ? flakeModule ) [
38
36
inputs . hercules-ci-effects . flakeModule
39
- {
40
- herculesCI = herculesCI : {
41
- onPush . default . outputs . effects . deploy = withSystem config . defaultEffectSystem (
42
- { pkgs , hci-effects , ... } :
43
- hci-effects . runIf ( herculesCI . config . repo . branch == "main" ) (
44
- hci-effects . mkEffect {
45
- effectScript = ''
46
- echo "${ builtins . toJSON { inherit ( herculesCI . config . repo ) branch tag rev ; } } "
47
- ${ pkgs . hello } /bin/hello
48
- '' ;
49
- }
50
- )
51
- ) ;
52
- } ;
53
- }
37
+ ./herculesCI/flake-module.nix
54
38
] ;
55
39
systems = [
56
40
"x86_64-linux"
Original file line number Diff line number Diff line change
1
+ {
2
+ config ,
3
+ withSystem ,
4
+ ...
5
+ } :
6
+ {
7
+ herculesCI = herculesCI : {
8
+ onPush . default . outputs . effects . deploy = withSystem config . defaultEffectSystem (
9
+ { pkgs , hci-effects , ... } :
10
+ hci-effects . runIf ( herculesCI . config . repo . branch == "main" ) (
11
+ hci-effects . mkEffect {
12
+ effectScript = ''
13
+ echo "${ builtins . toJSON { inherit ( herculesCI . config . repo ) branch tag rev ; } } "
14
+ ${ pkgs . hello } /bin/hello
15
+ '' ;
16
+ }
17
+ )
18
+ ) ;
19
+ } ;
20
+ }
You can’t perform that action at this time.
0 commit comments