mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-30 01:23:03 +00:00
1e607c9221
two main steps: 1 - first build everything (nix-push) 2 - install everything on a seperate disk/machine (nix-pull) svn path=/nixu/trunk/; revision=3291
17 lines
689 B
Bash
Executable File
17 lines
689 B
Bash
Executable File
#! /bin/sh -e
|
|
|
|
archivesDir=/tmp/arch
|
|
manifest=${archivesDir}/MANIFEST
|
|
|
|
NIX_CMD_PATH=/nix/bin
|
|
|
|
storeExpr=$(echo '(import ./pkgs.nix).everything' | $NIX_CMD_PATH/nix-instantiate -v -v -)
|
|
$NIX_CMD_PATH/nix-push --copy $archivesDir $manifest $(nix-store -r $storeExpr)
|
|
$NIX_CMD_PATH/nix-push --copy $archivesDir $manifest $(nix-store -r $(echo '(import ./pkgs.nix).kernel' | $NIX_CMD_PATH/nix-instantiate -))
|
|
|
|
# Location of sysvinit?
|
|
#sysvinitPath=$($NIX_CMD_PATH/nix-store -q $(echo '(import ./pkgs.nix).sysvinit' | $NIX_CMD_PATH/nix-instantiate -))
|
|
|
|
# Location of Nix boot scripts?
|
|
#bootPath=$($NIX_CMD_PATH/nix-store -q $(echo '(import ./pkgs.nix).boot' | $NIX_CMD_PATH/nix-instantiate -))
|