confctl 2.1.0 → 2.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +9 -0
- data/Gemfile +6 -0
- data/lib/confctl/cli/app.rb +9 -0
- data/lib/confctl/cli/swpins/channel.rb +6 -4
- data/lib/confctl/cli/swpins/cluster.rb +6 -4
- data/lib/confctl/cli/swpins/core.rb +6 -4
- data/lib/confctl/swpins/change_set.rb +11 -4
- data/lib/confctl/swpins/specs/git.rb +23 -16
- data/lib/confctl/version.rb +1 -1
- data/man/man8/confctl.8 +21 -0
- data/man/man8/confctl.8.md +21 -0
- data/nix/evaluator.nix +22 -5
- data/nix/modules/confctl/carrier/base.nix +8 -6
- data/nix/modules/confctl/carrier/netboot/nixos.nix +5 -3
- data/nix/modules/confctl/kexec-netboot/default.nix +6 -4
- data/nix/modules/confctl/overlays.nix +15 -0
- data/nix/modules/module-list.nix +1 -0
- data/shell.nix +9 -2
- metadata +3 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 177750f0895253859248355f7d3ffaf9ccdbeb7bfb5a0a24bc7fb6900ada9e18
|
4
|
+
data.tar.gz: f82c2f42f94f1c66745a6f9a930fd71a5a0dd32df1b5bb3ded9fe4f88a7c16f0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 760828ccbc067e319285146680c3f110d7ac545d990f8a254a24a2fdca6b71e44604c040acc277dafe5d99140ce1f594e173b2ab90150dd2d9cb94453869501d
|
7
|
+
data.tar.gz: 233f7c9b05e1fc4827c64d5d27736ffcedf2b181e6100007c5c858c144bb4899744ae77357c9e05e0a7ce8c38636c46d17fd69da2d5c06882af7a8f65056d4fe
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,12 @@
|
|
1
|
+
# Fri Jun 06 2025 -- version 2.2.1
|
2
|
+
- Fix `--[no-]editor` option on `confctl swpins core` commands
|
3
|
+
|
4
|
+
# Fri Jun 06 2025 -- version 2.2.0
|
5
|
+
- Handle `pkgs.substituteAll` / `pkgs.replaceVarsWith` compatibility on NixOS unstable
|
6
|
+
and 25.05
|
7
|
+
- Change swpin files only when revisions are updated, skip commit when no changes were made
|
8
|
+
- Add option `--[no-]editor` to `confctl swpins core/cluster/channel set/update` commands
|
9
|
+
|
1
10
|
# Sun May 11 2025 -- version 2.1.0
|
2
11
|
- Support for referring to generations by their offset
|
3
12
|
- Resolved generations are printed on build/deploy/etc.
|
data/Gemfile
CHANGED
data/lib/confctl/cli/app.rb
CHANGED
@@ -97,6 +97,9 @@ module ConfCtl::Cli
|
|
97
97
|
c.desc 'Include changelog in the commit message'
|
98
98
|
c.switch :changelog, default_value: true
|
99
99
|
|
100
|
+
c.desc 'Open $EDITOR with commit message'
|
101
|
+
c.switch :editor, default_value: true
|
102
|
+
|
100
103
|
c.desc 'Generate changelog for downgrade'
|
101
104
|
c.switch %i[d downgrade], default_value: false
|
102
105
|
|
@@ -112,6 +115,9 @@ module ConfCtl::Cli
|
|
112
115
|
c.desc 'Include changelog in the commit message'
|
113
116
|
c.switch :changelog, default_value: true
|
114
117
|
|
118
|
+
c.desc 'Open $EDITOR with commit message'
|
119
|
+
c.switch :editor, default_value: true
|
120
|
+
|
115
121
|
c.desc 'Generate changelog for downgrade'
|
116
122
|
c.switch %i[d downgrade], default_value: false
|
117
123
|
|
@@ -537,6 +543,9 @@ module ConfCtl::Cli
|
|
537
543
|
c.desc 'Include changelog in the commit message'
|
538
544
|
c.switch :changelog, default_value: true
|
539
545
|
|
546
|
+
c.desc 'Open $EDITOR with commit message'
|
547
|
+
c.switch :editor, default_value: true
|
548
|
+
|
540
549
|
c.desc 'Generate changelog for downgrade'
|
541
550
|
c.switch %i[d downgrade], default_value: false
|
542
551
|
|
@@ -37,11 +37,12 @@ module ConfCtl::Cli
|
|
37
37
|
|
38
38
|
channels.each(&:save)
|
39
39
|
|
40
|
-
return
|
40
|
+
return if !opts[:commit] || !change_set.any_changes?
|
41
41
|
|
42
42
|
change_set.commit(
|
43
43
|
type: opts[:downgrade] ? :downgrade : :upgrade,
|
44
|
-
changelog: opts[:changelog]
|
44
|
+
changelog: opts[:changelog],
|
45
|
+
editor: opts[:editor]
|
45
46
|
)
|
46
47
|
end
|
47
48
|
|
@@ -62,11 +63,12 @@ module ConfCtl::Cli
|
|
62
63
|
|
63
64
|
channels.each(&:save)
|
64
65
|
|
65
|
-
return
|
66
|
+
return if !opts[:commit] || !change_set.any_changes?
|
66
67
|
|
67
68
|
change_set.commit(
|
68
69
|
type: opts[:downgrade] ? :downgrade : :upgrade,
|
69
|
-
changelog: opts[:changelog]
|
70
|
+
changelog: opts[:changelog],
|
71
|
+
editor: opts[:editor]
|
70
72
|
)
|
71
73
|
end
|
72
74
|
end
|
@@ -42,11 +42,12 @@ module ConfCtl::Cli
|
|
42
42
|
|
43
43
|
cluster_names.each(&:save)
|
44
44
|
|
45
|
-
return
|
45
|
+
return if !opts[:commit] || !change_set.any_changes?
|
46
46
|
|
47
47
|
change_set.commit(
|
48
48
|
type: opts[:downgrade] ? :downgrade : :upgrade,
|
49
|
-
changelog: opts[:changelog]
|
49
|
+
changelog: opts[:changelog],
|
50
|
+
editor: opts[:editor]
|
50
51
|
)
|
51
52
|
end
|
52
53
|
|
@@ -69,11 +70,12 @@ module ConfCtl::Cli
|
|
69
70
|
|
70
71
|
cluster_names.each(&:save)
|
71
72
|
|
72
|
-
return
|
73
|
+
return if !opts[:commit] || !change_set.any_changes?
|
73
74
|
|
74
75
|
change_set.commit(
|
75
76
|
type: opts[:downgrade] ? :downgrade : :upgrade,
|
76
|
-
changelog: opts[:changelog]
|
77
|
+
changelog: opts[:changelog],
|
78
|
+
editor: opts[:editor]
|
77
79
|
)
|
78
80
|
end
|
79
81
|
end
|
@@ -46,11 +46,12 @@ module ConfCtl::Cli
|
|
46
46
|
core.save
|
47
47
|
core.pre_evaluate
|
48
48
|
|
49
|
-
return
|
49
|
+
return if !opts[:commit] || !change_set.any_changes?
|
50
50
|
|
51
51
|
change_set.commit(
|
52
52
|
type: opts[:downgrade] ? :downgrade : :upgrade,
|
53
|
-
changelog: opts[:changelog]
|
53
|
+
changelog: opts[:changelog],
|
54
|
+
editor: opts[:editor]
|
54
55
|
)
|
55
56
|
end
|
56
57
|
|
@@ -75,11 +76,12 @@ module ConfCtl::Cli
|
|
75
76
|
core.save
|
76
77
|
core.pre_evaluate
|
77
78
|
|
78
|
-
return
|
79
|
+
return if !opts[:commit] || !change_set.any_changes?
|
79
80
|
|
80
81
|
change_set.commit(
|
81
82
|
type: opts[:downgrade] ? :downgrade : :upgrade,
|
82
|
-
changelog: opts[:changelog]
|
83
|
+
changelog: opts[:changelog],
|
84
|
+
editor: opts[:editor]
|
83
85
|
)
|
84
86
|
end
|
85
87
|
end
|
@@ -48,22 +48,29 @@ module ConfCtl
|
|
48
48
|
|
49
49
|
# @param type [:upgrade, :downgrade]
|
50
50
|
# @param changelog [Boolean]
|
51
|
-
|
51
|
+
# @param editor [Boolean]
|
52
|
+
def commit(type: :upgrade, changelog: false, editor: true)
|
52
53
|
return if @owners.empty?
|
53
54
|
|
54
|
-
|
55
|
+
git_commit = [
|
55
56
|
'git',
|
56
57
|
'commit',
|
57
|
-
'-e',
|
58
|
+
editor ? '-e' : nil,
|
58
59
|
'-m', build_message(type, changelog),
|
59
60
|
*changed_files
|
60
|
-
|
61
|
+
].compact
|
62
|
+
|
63
|
+
ret = Kernel.system(*git_commit)
|
61
64
|
|
62
65
|
return if ret
|
63
66
|
|
64
67
|
raise 'git commit exited with non-zero status code'
|
65
68
|
end
|
66
69
|
|
70
|
+
def any_changes?
|
71
|
+
@owners.any? { |_, spec_sets| spec_sets.any?(&:changed?) }
|
72
|
+
end
|
73
|
+
|
67
74
|
protected
|
68
75
|
|
69
76
|
def build_message(type, changelog)
|
@@ -90,14 +90,18 @@ module ConfCtl
|
|
90
90
|
raise "nix-prefetch-git failed with status #{$?.exitstatus}" if $?.exitstatus != 0
|
91
91
|
|
92
92
|
ret = JSON.parse(json.strip)
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
93
|
+
|
94
|
+
if state.nil? || state['rev'] != ret['rev']
|
95
|
+
self.state = {
|
96
|
+
'rev' => ret['rev'],
|
97
|
+
'date' => Time.now.iso8601
|
98
|
+
}
|
99
|
+
self.info = {
|
100
|
+
'rev' => ret['rev'],
|
101
|
+
'sha256' => ret['sha256']
|
102
|
+
}
|
103
|
+
end
|
104
|
+
|
101
105
|
ret
|
102
106
|
end
|
103
107
|
|
@@ -111,14 +115,17 @@ module ConfCtl
|
|
111
115
|
|
112
116
|
raise "nix-prefetch-url failed with status #{$?.exitstatus}" if $?.exitstatus != 0
|
113
117
|
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
118
|
+
if state.nil? || state['rev'] != rev
|
119
|
+
self.state = {
|
120
|
+
'rev' => rev,
|
121
|
+
'date' => Time.now.iso8601
|
122
|
+
}
|
123
|
+
self.info = {
|
124
|
+
'rev' => rev,
|
125
|
+
'sha256' => hash
|
126
|
+
}
|
127
|
+
end
|
128
|
+
|
122
129
|
{ 'url' => url, 'sha256' => hash }
|
123
130
|
end
|
124
131
|
|
data/lib/confctl/version.rb
CHANGED
data/man/man8/confctl.8
CHANGED
@@ -549,6 +549,9 @@ on the type of the software pin, for git it is a git reference, e.g. a revision.
|
|
549
549
|
Include changelog in the commit message when \fB\fC\-\-commit\fR is used. Enabled by
|
550
550
|
default.
|
551
551
|
.TP
|
552
|
+
\fB\fC\-\-[no]\-editor\fR
|
553
|
+
Open \fB\fC$EDITOR\fR with the commit message. Enabled by default.
|
554
|
+
.TP
|
552
555
|
\fB\fC\-d\fR, \fB\fC\-\-downgrade\fR
|
553
556
|
Use when the new version is older than the previously set version. Used for
|
554
557
|
generating changelog for the commit message.
|
@@ -563,6 +566,9 @@ this command. The usual case for git is to pin to the current branch head.
|
|
563
566
|
\fB\fC\-\-[no\-]changelog\fR
|
564
567
|
Include changelog in the commit message when \fB\fC\-\-commit\fR is used. Enabled by
|
565
568
|
default.
|
569
|
+
.PP
|
570
|
+
\fB\fC\-\-[no]\-editor\fR
|
571
|
+
Open \fB\fC$EDITOR\fR with the commit message. Enabled by default.
|
566
572
|
.PP
|
567
573
|
\fB\fC\-d\fR, \fB\fC\-\-downgrade\fR
|
568
574
|
Use when the new version is older than the previously set version. Used for
|
@@ -582,6 +588,9 @@ reference, e.g. a revision.
|
|
582
588
|
\fB\fC\-\-[no\-]changelog\fR
|
583
589
|
Include changelog in the commit message when \fB\fC\-\-commit\fR is used. Enabled by
|
584
590
|
default.
|
591
|
+
.PP
|
592
|
+
\fB\fC\-\-[no]\-editor\fR
|
593
|
+
Open \fB\fC$EDITOR\fR with the commit message. Enabled by default.
|
585
594
|
.PP
|
586
595
|
\fB\fC\-d\fR, \fB\fC\-\-downgrade\fR
|
587
596
|
Use when the new version is older than the previously set version. Used for
|
@@ -598,6 +607,9 @@ branch head.
|
|
598
607
|
\fB\fC\-\-[no\-]changelog\fR
|
599
608
|
Include changelog in the commit message when \fB\fC\-\-commit\fR is used. Enabled by
|
600
609
|
default.
|
610
|
+
.PP
|
611
|
+
\fB\fC\-\-[no]\-editor\fR
|
612
|
+
Open \fB\fC$EDITOR\fR with the commit message. Enabled by default.
|
601
613
|
.PP
|
602
614
|
\fB\fC\-d\fR, \fB\fC\-\-downgrade\fR
|
603
615
|
Use when the new version is older than the previously set version. Used for
|
@@ -617,6 +629,9 @@ reference, e.g. a revision.
|
|
617
629
|
\fB\fC\-\-[no\-]changelog\fR
|
618
630
|
Include changelog in the commit message when \fB\fC\-\-commit\fR is used. Enabled by
|
619
631
|
default.
|
632
|
+
.PP
|
633
|
+
\fB\fC\-\-[no]\-editor\fR
|
634
|
+
Open \fB\fC$EDITOR\fR with the commit message. Enabled by default.
|
620
635
|
.PP
|
621
636
|
\fB\fC\-d\fR, \fB\fC\-\-downgrade\fR
|
622
637
|
Use when the new version is older than the previously set version. Used for
|
@@ -633,6 +648,9 @@ branch head.
|
|
633
648
|
\fB\fC\-\-[no\-]changelog\fR
|
634
649
|
Include changelog in the commit message when \fB\fC\-\-commit\fR is used. Enabled by
|
635
650
|
default.
|
651
|
+
.PP
|
652
|
+
\fB\fC\-\-[no]\-editor\fR
|
653
|
+
Open \fB\fC$EDITOR\fR with the commit message. Enabled by default.
|
636
654
|
.PP
|
637
655
|
\fB\fC\-d\fR, \fB\fC\-\-downgrade\fR
|
638
656
|
Use when the new version is older than the previously set version. Used for
|
@@ -648,6 +666,9 @@ in all channels, all machine\-specific pins and the core pins.
|
|
648
666
|
\fB\fC\-\-[no\-]changelog\fR
|
649
667
|
Include changelog in the commit message when \fB\fC\-\-commit\fR is used. Enabled by
|
650
668
|
default.
|
669
|
+
.PP
|
670
|
+
\fB\fC\-\-[no]\-editor\fR
|
671
|
+
Open \fB\fC$EDITOR\fR with the commit message. Enabled by default.
|
651
672
|
.PP
|
652
673
|
\fB\fC\-d\fR, \fB\fC\-\-downgrade\fR
|
653
674
|
Use when the new version is older than the previously set version. Used for
|
data/man/man8/confctl.8.md
CHANGED
@@ -539,6 +539,9 @@ the generation before last and so on.
|
|
539
539
|
Include changelog in the commit message when `--commit` is used. Enabled by
|
540
540
|
default.
|
541
541
|
|
542
|
+
`--[no]-editor`
|
543
|
+
Open `$EDITOR` with the commit message. Enabled by default.
|
544
|
+
|
542
545
|
`-d`, `--downgrade`
|
543
546
|
Use when the new version is older than the previously set version. Used for
|
544
547
|
generating changelog for the commit message.
|
@@ -554,6 +557,9 @@ the generation before last and so on.
|
|
554
557
|
Include changelog in the commit message when `--commit` is used. Enabled by
|
555
558
|
default.
|
556
559
|
|
560
|
+
`--[no]-editor`
|
561
|
+
Open `$EDITOR` with the commit message. Enabled by default.
|
562
|
+
|
557
563
|
`-d`, `--downgrade`
|
558
564
|
Use when the new version is older than the previously set version. Used for
|
559
565
|
generating changelog for the commit message.
|
@@ -573,6 +579,9 @@ the generation before last and so on.
|
|
573
579
|
Include changelog in the commit message when `--commit` is used. Enabled by
|
574
580
|
default.
|
575
581
|
|
582
|
+
`--[no]-editor`
|
583
|
+
Open `$EDITOR` with the commit message. Enabled by default.
|
584
|
+
|
576
585
|
`-d`, `--downgrade`
|
577
586
|
Use when the new version is older than the previously set version. Used for
|
578
587
|
generating changelog for the commit message.
|
@@ -589,6 +598,9 @@ the generation before last and so on.
|
|
589
598
|
Include changelog in the commit message when `--commit` is used. Enabled by
|
590
599
|
default.
|
591
600
|
|
601
|
+
`--[no]-editor`
|
602
|
+
Open `$EDITOR` with the commit message. Enabled by default.
|
603
|
+
|
592
604
|
`-d`, `--downgrade`
|
593
605
|
Use when the new version is older than the previously set version. Used for
|
594
606
|
generating changelog for the commit message.
|
@@ -608,6 +620,9 @@ the generation before last and so on.
|
|
608
620
|
Include changelog in the commit message when `--commit` is used. Enabled by
|
609
621
|
default.
|
610
622
|
|
623
|
+
`--[no]-editor`
|
624
|
+
Open `$EDITOR` with the commit message. Enabled by default.
|
625
|
+
|
611
626
|
`-d`, `--downgrade`
|
612
627
|
Use when the new version is older than the previously set version. Used for
|
613
628
|
generating changelog for the commit message.
|
@@ -624,6 +639,9 @@ the generation before last and so on.
|
|
624
639
|
Include changelog in the commit message when `--commit` is used. Enabled by
|
625
640
|
default.
|
626
641
|
|
642
|
+
`--[no]-editor`
|
643
|
+
Open `$EDITOR` with the commit message. Enabled by default.
|
644
|
+
|
627
645
|
`-d`, `--downgrade`
|
628
646
|
Use when the new version is older than the previously set version. Used for
|
629
647
|
generating changelog for the commit message.
|
@@ -639,6 +657,9 @@ the generation before last and so on.
|
|
639
657
|
Include changelog in the commit message when `--commit` is used. Enabled by
|
640
658
|
default.
|
641
659
|
|
660
|
+
`--[no]-editor`
|
661
|
+
Open `$EDITOR` with the commit message. Enabled by default.
|
662
|
+
|
642
663
|
`-d`, `--downgrade`
|
643
664
|
Use when the new version is older than the previously set version. Used for
|
644
665
|
generating changelog for the commit message.
|
data/nix/evaluator.nix
CHANGED
@@ -84,11 +84,28 @@ let
|
|
84
84
|
in {
|
85
85
|
attribute = result;
|
86
86
|
|
87
|
-
autoRollback =
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
87
|
+
autoRollback =
|
88
|
+
# pkgs.substituteAll was removed from nixos-unstable, but pkgs.replaceVarsWith
|
89
|
+
# is not available in nixos-25.05.
|
90
|
+
let
|
91
|
+
args = {
|
92
|
+
src = ../libexec/auto-rollback.rb;
|
93
|
+
isExecutable = true;
|
94
|
+
};
|
95
|
+
|
96
|
+
replacements = {
|
97
|
+
ruby = nixpkgs.ruby;
|
98
|
+
};
|
99
|
+
in
|
100
|
+
if builtins.hasAttr "replaceVarsWith" corePkgs then
|
101
|
+
corePkgs.replaceVarsWith {
|
102
|
+
inherit (args) src isExecutable;
|
103
|
+
inherit replacements;
|
104
|
+
}
|
105
|
+
else
|
106
|
+
corePkgs.substituteAll ({
|
107
|
+
inherit (args) src isExecutable;
|
108
|
+
} // replacements);
|
92
109
|
};
|
93
110
|
|
94
111
|
evalMachine = machine:
|
@@ -4,16 +4,18 @@ let
|
|
4
4
|
|
5
5
|
cfg = config.confctl.carrier;
|
6
6
|
|
7
|
-
carrier-env = pkgs.
|
7
|
+
carrier-env = pkgs.confReplaceVarsWith {
|
8
8
|
src = ./carrier-env.rb;
|
9
9
|
name = "carrier-env";
|
10
10
|
isExecutable = true;
|
11
11
|
dir = "bin";
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
12
|
+
replacements = {
|
13
|
+
ruby = pkgs.ruby;
|
14
|
+
onChangeCommands = pkgs.writeScript "carrier-on-change-commands.sh" ''
|
15
|
+
#!${pkgs.bash}/bin/bash
|
16
|
+
${cfg.onChangeCommands}
|
17
|
+
'';
|
18
|
+
};
|
17
19
|
};
|
18
20
|
in {
|
19
21
|
options = {
|
@@ -52,13 +52,15 @@ let
|
|
52
52
|
isoImages = cfg.isoImages;
|
53
53
|
};
|
54
54
|
|
55
|
-
builder = pkgs.
|
55
|
+
builder = pkgs.confReplaceVarsWith {
|
56
56
|
src = ./build-netboot-server.rb;
|
57
57
|
name = "build-netboot-server";
|
58
58
|
dir = "bin";
|
59
59
|
isExecutable = true;
|
60
|
-
|
61
|
-
|
60
|
+
replacements = {
|
61
|
+
ruby = pkgs.ruby;
|
62
|
+
jsonConfig = pkgs.writeText "netboot-server.json" builderConfig;
|
63
|
+
};
|
62
64
|
};
|
63
65
|
in {
|
64
66
|
options = {
|
@@ -4,13 +4,15 @@ let
|
|
4
4
|
|
5
5
|
cfg = config.confctl.programs.kexec-netboot;
|
6
6
|
|
7
|
-
kexecNetboot = pkgs.
|
7
|
+
kexecNetboot = pkgs.confReplaceVarsWith {
|
8
8
|
name = "kexec-netboot";
|
9
9
|
src = ./kexec-netboot.rb;
|
10
10
|
isExecutable = true;
|
11
|
-
|
12
|
-
|
13
|
-
|
11
|
+
replacements = {
|
12
|
+
ruby = pkgs.ruby;
|
13
|
+
kexecTools = pkgs.kexec-tools;
|
14
|
+
machineFqdn = confMachine.host.fqdn;
|
15
|
+
};
|
14
16
|
};
|
15
17
|
|
16
18
|
kexecNetbootBin = pkgs.runCommand "kexec-netboot-bin" {} ''
|
@@ -0,0 +1,15 @@
|
|
1
|
+
{ config, ... }:
|
2
|
+
{
|
3
|
+
nixpkgs.overlays = [
|
4
|
+
(self: super: {
|
5
|
+
# nixos-unstable removed pkgs.substituteAll, but nixos-25.05 does not
|
6
|
+
# include the new function pkgs.replaceVarsWith
|
7
|
+
confReplaceVarsWith =
|
8
|
+
{ replacements, ... } @ args:
|
9
|
+
if builtins.hasAttr "replaceVarsWith" self then
|
10
|
+
self.replaceVarsWith args
|
11
|
+
else
|
12
|
+
self.substituteAll ((builtins.removeAttrs args [ "replacements" ]) // replacements);
|
13
|
+
})
|
14
|
+
];
|
15
|
+
}
|
data/nix/modules/module-list.nix
CHANGED
data/shell.nix
CHANGED
@@ -19,12 +19,19 @@ in stdenv.mkDerivation rec {
|
|
19
19
|
export GEM_HOME="$(pwd)/.gems"
|
20
20
|
BINDIR="$(ruby -e 'puts Gem.bindir')"
|
21
21
|
mkdir -p "$BINDIR"
|
22
|
+
|
22
23
|
export PATH="$BINDIR:$PATH"
|
23
24
|
export RUBYLIB="$GEM_HOME:$CONFCTL/lib"
|
24
25
|
export MANPATH="$CONFCTL/man:$(man --path)"
|
25
|
-
gem install --no-document bundler
|
26
|
+
gem install --no-document bundler
|
26
27
|
pushd "$CONFCTL"
|
27
|
-
|
28
|
+
|
29
|
+
# Purity disabled because of prism gem, which has a native extension.
|
30
|
+
# The extension has its header files in .gems, which gets stripped but
|
31
|
+
# cc wrapper in Nix. Without NIX_ENFORCE_PURITY=0, we get prism.h not found
|
32
|
+
# error.
|
33
|
+
NIX_ENFORCE_PURITY=0 bundle install
|
34
|
+
|
28
35
|
bundle exec rake md2man:man
|
29
36
|
popd
|
30
37
|
|
metadata
CHANGED
@@ -1,11 +1,10 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: confctl
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1
|
4
|
+
version: 2.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jakub Skokan
|
8
|
-
autorequire:
|
9
8
|
bindir: bin
|
10
9
|
cert_chain: []
|
11
10
|
date: 1980-01-01 00:00:00.000000000 Z
|
@@ -331,17 +330,16 @@ files:
|
|
331
330
|
- nix/modules/confctl/kexec-netboot/kexec-netboot.8.adoc
|
332
331
|
- nix/modules/confctl/kexec-netboot/kexec-netboot.rb
|
333
332
|
- nix/modules/confctl/nix.nix
|
333
|
+
- nix/modules/confctl/overlays.nix
|
334
334
|
- nix/modules/confctl/swpins.nix
|
335
335
|
- nix/modules/module-list.nix
|
336
336
|
- nix/modules/system-list.nix
|
337
337
|
- shell.nix
|
338
338
|
- template/confctl-options.nix/main.erb
|
339
339
|
- template/confctl-options.nix/options.erb
|
340
|
-
homepage:
|
341
340
|
licenses:
|
342
341
|
- GPL-3.0-only
|
343
342
|
metadata: {}
|
344
|
-
post_install_message:
|
345
343
|
rdoc_options: []
|
346
344
|
require_paths:
|
347
345
|
- lib
|
@@ -356,8 +354,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
356
354
|
- !ruby/object:Gem::Version
|
357
355
|
version: '0'
|
358
356
|
requirements: []
|
359
|
-
rubygems_version: 3.
|
360
|
-
signing_key:
|
357
|
+
rubygems_version: 3.6.6
|
361
358
|
specification_version: 4
|
362
359
|
summary: Nix deployment management tool
|
363
360
|
test_files: []
|