mirror of
https://github.com/LnL7/nix-darwin.git
synced 2025-03-16 05:18:17 +00:00
Merge pull request #85 from kirelagin/more-nix
installer: Bring our own `nix-instantiate`
This commit is contained in:
commit
9f18c93771
1 changed files with 1 additions and 1 deletions
|
@ -44,7 +44,7 @@ stdenv.mkDerivation {
|
||||||
|
|
||||||
export nix=${nix}
|
export nix=${nix}
|
||||||
|
|
||||||
config=$(nix-instantiate --eval -E '<darwin-config>' 2> /dev/null || echo "$HOME/.nixpkgs/darwin-configuration.nix")
|
config=$($nix/bin/nix-instantiate --eval -E '<darwin-config>' 2> /dev/null || echo "$HOME/.nixpkgs/darwin-configuration.nix")
|
||||||
if ! test -f "$config"; then
|
if ! test -f "$config"; then
|
||||||
echo "copying example configuration.nix" >&2
|
echo "copying example configuration.nix" >&2
|
||||||
mkdir -p "$HOME/.nixpkgs"
|
mkdir -p "$HOME/.nixpkgs"
|
||||||
|
|
Loading…
Add table
Reference in a new issue