2004-02-14 23:56:51 +01:00
|
|
|
#! /bin/sh -e
|
|
|
|
|
2005-07-05 15:52:49 +02:00
|
|
|
archivesDir=/tmp/arch
|
|
|
|
manifest=${archivesDir}/MANIFEST
|
2005-07-06 16:42:41 +02:00
|
|
|
nixpkgs=/nixpkgs2/trunk/pkgs
|
|
|
|
|
|
|
|
rm -rf ${archivesDir}/*
|
2004-08-06 15:52:39 +02:00
|
|
|
|
|
|
|
NIX_CMD_PATH=/nix/bin
|
|
|
|
|
2005-07-05 15:52:49 +02:00
|
|
|
storeExpr=$(echo '(import ./pkgs.nix).everything' | $NIX_CMD_PATH/nix-instantiate -v -v -)
|
2005-07-05 16:39:12 +02:00
|
|
|
$NIX_CMD_PATH/nix-push --copy $archivesDir $manifest $(nix-store -r $storeExpr) $(nix-store -r $(echo '(import ./pkgs.nix).kernel' | $NIX_CMD_PATH/nix-instantiate -))
|
|
|
|
#$NIX_CMD_PATH/nix-push --copy $archivesDir $manifest $(nix-store -r $(echo '(import ./pkgs.nix).kernel' | $NIX_CMD_PATH/nix-instantiate -))
|
2004-02-18 11:56:07 +01:00
|
|
|
|
|
|
|
# Location of sysvinit?
|
2005-07-05 15:52:49 +02:00
|
|
|
#sysvinitPath=$($NIX_CMD_PATH/nix-store -q $(echo '(import ./pkgs.nix).sysvinit' | $NIX_CMD_PATH/nix-instantiate -))
|
2004-02-18 11:56:07 +01:00
|
|
|
|
2004-02-18 15:56:32 +01:00
|
|
|
# Location of Nix boot scripts?
|
2005-07-05 15:52:49 +02:00
|
|
|
#bootPath=$($NIX_CMD_PATH/nix-store -q $(echo '(import ./pkgs.nix).boot' | $NIX_CMD_PATH/nix-instantiate -))
|
2005-07-05 16:39:12 +02:00
|
|
|
|
2005-07-06 16:42:41 +02:00
|
|
|
cp -fa ${nixpkgs} ${archivesDir}
|
|
|
|
mkdir ${archivesDir}/scripts
|
|
|
|
cp -fa * ${archivesDir}/scripts
|