1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-10 04:43:53 +02:00

* `nix-install-package --url': install from a URL (NIX-12).

* `nix-install-package --help' (NIX-9).
* `nix-install-package --non-interactive': don't prompt or pause.
* Tests for nix-install-package.
* Security fixes: filter the values obtained from the nixpkg.
This commit is contained in:
Eelco Dolstra 2006-09-21 18:54:08 +00:00
parent 4e91d8621f
commit 0bd5eb71a0
10 changed files with 152 additions and 37 deletions

View file

@ -47,3 +47,18 @@ export nixhash=$TOP/src/nix-hash/nix-hash
readLink() {
ls -l "$1" | sed 's/.*->\ //'
}
clearStore() {
echo "clearing store..."
chmod -R +w "$NIX_STORE_DIR"
rm -rf "$NIX_STORE_DIR"
mkdir "$NIX_STORE_DIR"
rm -rf "$NIX_DB_DIR"
mkdir "$NIX_DB_DIR"
$nixstore --init
}
clearProfiles() {
profiles="$NIX_STATE_DIR"/profiles
rm -f $profiles/*
}