mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-03-23 05:35:53 -04:00
use pkgs.writeText
This commit is contained in:
parent
f5372f160c
commit
f3498691aa
1 changed files with 1 additions and 3 deletions
|
|
@ -13,9 +13,7 @@ self: {
|
|||
${cfg.autostart_sh}
|
||||
'';
|
||||
validatedConfig = pkgs.runCommand "mango-config.conf" { } ''
|
||||
cat > "$out" <<'EOF'
|
||||
${cfg.settings}
|
||||
EOF
|
||||
cp ${pkgs.writeText "mango-config.conf" cfg.settings} "$out"
|
||||
|
||||
${cfg.package}/bin/mango -c "$out" -p || exit 1
|
||||
'';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue