File tree Expand file tree Collapse file tree 5 files changed +26
-25
lines changed Expand file tree Collapse file tree 5 files changed +26
-25
lines changed Original file line number Diff line number Diff line change @@ -13,12 +13,11 @@ stdenvNoCC.mkDerivation {
13
13
14
14
__structuredAttrs = true ;
15
15
16
- env = {
17
- theme = "rosepine" ;
18
- } ;
16
+ theme = "rosepine" ;
19
17
20
18
buildCommand = ''
21
- substituteAll ${ ./kitty.conf } kitty.conf
19
+ substitute ${ ./kitty.conf } kitty.conf \
20
+ --replace-fail '@theme@' "$theme"
22
21
23
22
(
24
23
echo "# BEGIN_KITTY_THEME"
Original file line number Diff line number Diff line change @@ -7,7 +7,8 @@ stdenv.mkDerivation {
7
7
version = "0.1.0" ;
8
8
9
9
buildCommand = ''
10
- substituteAll ${ ./launchd-exec.c } launchd-exec.c
10
+ substitute ${ ./launchd-exec.c } launchd-exec.c \
11
+ --replace-fail '@version@' "$version"
11
12
mkdir -p $out/bin
12
13
$CC launchd-exec.c -o $out/bin/launchd-exec
13
14
'' ;
Original file line number Diff line number Diff line change @@ -94,14 +94,16 @@ stdenvNoCC.mkDerivation {
94
94
95
95
__structuredAttrs = true ;
96
96
97
- env = {
98
- inherit ( tmuxPlugins ) sensible yank ;
99
- inherit sourceTheme ;
100
- inherit interactiveShell ;
101
- } ;
97
+ inherit ( tmuxPlugins ) sensible yank ;
98
+ inherit sourceTheme ;
99
+ inherit interactiveShell ;
102
100
103
101
buildCommand = ''
104
- substituteAll ${ ./tmux.conf } $out
102
+ substitute ${ ./tmux.conf } $out \
103
+ --replace-fail '@sensible@' "$sensible" \
104
+ --replace-fail '@yank@' "$yank" \
105
+ --replace-fail '@sourceTheme@' "$sourceTheme" \
106
+ --replace-fail '@interactiveShell@' "$interactiveShell"
105
107
'' ;
106
108
107
109
meta = {
Original file line number Diff line number Diff line change @@ -33,13 +33,13 @@ stdenvNoCC.mkDerivation {
33
33
34
34
__structuredAttrs = true ;
35
35
36
- env = {
37
- theme = if theme == null then "" else theme ;
38
- colorScheme = if theme == null then "" else colorScheme ;
39
- } ;
36
+ theme = if theme == null then "" else theme ;
37
+ colorScheme = if theme == null then "" else colorScheme ;
40
38
41
39
buildCommand = ''
42
- substituteAll "${ ./wezterm-config.lua } " "$out"
40
+ substitute "${ ./wezterm-config.lua } " "$out" \
41
+ --replace-fail '@theme@' "$theme" \
42
+ --replace-fail '@colorScheme@' "$colorScheme"
43
43
'' ;
44
44
45
45
meta = {
Original file line number Diff line number Diff line change @@ -19,18 +19,17 @@ stdenvNoCC.mkDerivation {
19
19
20
20
__structuredAttrs = true ;
21
21
22
- env = {
23
- theme =
24
- if zellijTheme == null then
25
- "default"
26
- else
27
- assert ( lib . asserts . assertOneOf "zellijTheme" zellijTheme validThemes ) ;
28
- zellijTheme ;
29
- } ;
22
+ theme =
23
+ if zellijTheme == null then
24
+ "default"
25
+ else
26
+ assert ( lib . asserts . assertOneOf "zellijTheme" zellijTheme validThemes ) ;
27
+ zellijTheme ;
30
28
31
29
buildCommand = ''
32
30
mkdir $out
33
- substituteAll ${ ./zellij.kdl } $out/config.kdl
31
+ substitute ${ ./zellij.kdl } $out/config.kdl \
32
+ --replace-fail '@theme@' "$theme"
34
33
'' ;
35
34
36
35
meta = {
You can’t perform that action at this time.
0 commit comments