1
1
mirror of https://github.com/LnL7/nix-darwin.git synced 2024-11-13 04:56:53 +03:00

installer: fallback to a default editor

This commit is contained in:
Daiderd Jordan 2018-01-24 22:37:40 +01:00
parent 4757a160e2
commit 6f1c1049dd
No known key found for this signature in database
GPG Key ID: D02435D05B810C96
2 changed files with 3 additions and 1 deletions

View File

@ -11,6 +11,7 @@ in
stdenv.mkDerivation {
name = "darwin-installer";
preferLocalBuild = true;
unpackPhase = ":";
@ -56,7 +57,7 @@ stdenv.mkDerivation {
read -p "Would you like edit the default configuration.nix before starting? [y/n] " i
case "$i" in
y|Y)
$EDITOR "$config"
''${EDITOR:-nano} "$config"
;;
esac
fi

View File

@ -11,6 +11,7 @@ in
stdenv.mkDerivation {
name = "darwin-uninstaller";
preferLocalBuild = true;
unpackPhase = ":";