about summary refs log tree commit diff
path: root/scripts
AgeCommit message (Collapse)AuthorFilesLines
2005-01-14 * Use absolute paths.Eelco Dolstra2-8/+8
2005-01-12 * Script to remove patches from manifests.Eelco Dolstra1-0/+19
2005-01-12 * Print out less garbage.Eelco Dolstra1-8/+10
2005-01-05 * Prototype store optimiser. It searched the Nix store for identicalEelco Dolstra1-0/+69
files and hard-links them to each other to save disk space. Currently it doesn't actually do the hard-linking, it just reports the amount of space saved if it did.
2004-12-31 * If a patch already exists, it must still be included in the manifest.Eelco Dolstra1-7/+10
2004-12-30 * More instrumentation (statistics go to /nix/var/log/nix/downloads).Eelco Dolstra1-1/+6
2004-12-30 * Fix handling of chained patches: don't skip patches if intermediateEelco Dolstra1-13/+20
paths are missing, etc.
2004-12-30 * Some logging for evaluation.Eelco Dolstra2-0/+16
2004-12-29 * Propagate patches from the source distribution to the destinationEelco Dolstra3-18/+68
distribution insofar they are applicable.
2004-12-29 * Reject patches larger than the full archives they produce.Eelco Dolstra1-6/+12
2004-12-29 * Atomic file replacement is good.Eelco Dolstra2-3/+14
2004-12-29 * A utility to generate patches between releases based on theirEelco Dolstra2-25/+249
manifests.
2004-12-28 * A small utility to add the Size and NarHash fields to old manifests.Eelco Dolstra1-0/+53
2004-12-28 * Added a function to write manifests.Eelco Dolstra2-41/+86
2004-12-20 * Place manifests in /nix/var/nix/manifests.Eelco Dolstra7-23/+250
* Use the new patch downloader.
2004-12-20 * Sync with changed substitute mechanism.Eelco Dolstra3-6/+11
* Accept the NarHash line. * Clear substitutes in `nix-channel --update'.
2004-12-16 * Fix nix-pull.Eelco Dolstra1-11/+14
2004-12-16 * Remove `prebuilts.conf' file, it's not like anybody was using it.Eelco Dolstra2-19/+4
* Add /nix/var/nix/manifests directory.
2004-12-13 * Include the size of the bzipped archive (necessary for computing theEelco Dolstra1-5/+15
cheapest download path), as well as the hash of the contents of the path (necessary for checking patch applicability).
2004-12-13 * Patch deployment. `download.pl' (intended to be used in theEelco Dolstra2-34/+105
substitute mechanism) creates a store path by downloading full NAR archives and/or patches specified in the available manifests. Any combination of present paths, full downloads, and patches can be used to construct the target path. In particular, patches can be chained in sequence; and full NAR archives of the target path can be omitted (i.e., patch-only deployment is possible). A shortest path algorithm is used to find the smallest set of files to be downloaded (the edge weights are currently file sizes, but one can imagine taking the network speed to the various source into account). Patches are binary deltas between two store paths. To be precise, they are the output of the `bsdiff' program applied to the NAR archives obtained by dumping (`nix-store --dump') the two store paths. The advantage of diff'ing NAR archives (and not, say, doing file-by-file diffs) is that file renames/moves are handled automatically. The disadvantage is that we cannot optimise creation of unchanged files (by hard-linking).
2004-12-13 * Allow an optional hash to be provided. This prevents redundantEelco Dolstra1-20/+26
fetches.
2004-11-04 * Better error messages.Eelco Dolstra1-4/+4
2004-10-31 * Fix `File exists' errors if the `result' symlink exists but isEelco Dolstra1-5/+4
dangling.
2004-10-20 * Register channels as roots of the garbage collector (inEelco Dolstra1-2/+19
$(localstatedir)/nix/gcroots/channels). * In setuid installations, create gcroots/tmp and gcroots/channels group-writable.
2004-10-20 * Fix nix-prefetch-url in setuid Nix installations.Eelco Dolstra1-9/+20
2004-10-20 * Show error messages from curl.Eelco Dolstra1-1/+1
2004-08-25 * `--min-age' flag in nix-store and nix-collect-garbage to only deleteEelco Dolstra1-4/+12
unreachable paths that haven't been used for N hours. For instance, `nix-collect-garbage --min-age 168' only deletes paths that haven't been accessed in the last week. This is useful for instance in the build farm where many derivations can be shared between consecutive builds, and we wouldn't want a garbage collect to throw them all away. We could of course register them as roots, but then we'd to unregister them at some point, which would be a pain to manage. The `--min-age' flag gives us a sort of MRU caching scheme. BUG: this really shouldn't be in gc.cc since that violates mechanism/policy separation.
2004-08-25 * `nix-collect-garbage' now actually performs a garbage collection, itEelco Dolstra1-31/+13
doesn't just print the set of paths that should be deleted. So there is no more need to pipe the result into `nix-store --delete' (which doesn't even exist anymore).
2004-08-20 * Setuid support for sharing a Nix installation between multipleEelco Dolstra1-1/+1
users. If the configure flag `--enable-setuid' is used, the Nix programs nix-env, nix-store, etc. are installed with the setuid bit turned on so that they are executed as the user and group specified by `--with-nix-user=USER' and `--with-nix-group=GROUP', respectively (with defaults `nix' and `nix'). The setuid programs drop all special privileges if they are executed by a user who is not a member of the Nix group. The setuid feature is a quick hack to enable sharing of a Nix installation between users who trust each other. It is not generally secure, since any user in the Nix group can modify (by building an appropriate derivation) any object in the store, and for instance inject trojans into binaries used by other users. The setuid programs are owned by root, not the Nix user. This is because on Unix normal users cannot change the real uid, only the effective uid. Many programs don't work properly when the real uid differs from the effective uid. For instance, Perl will turn on taint mode. However, the setuid programs drop all root privileges immediately, changing all uids and gids to the Nix user and group.
2004-08-18 * Flag `--no-link' suppresses symlinking to the output path.Eelco Dolstra1-11/+19
* Handle multiple derivations correctly.
2004-07-28 * Nix-build places a symlink `result' in the current directory to theEelco Dolstra1-1/+10
store object just built.
2004-06-22 * Nix-instantiate can return multiple store expressions.Eelco Dolstra1-1/+3
2004-06-22 * A utility script `nix-build' that builds Nix expressions and printsEelco Dolstra2-6/+30
their output paths (and only that) on standard output.
2004-06-21 * Adapted nix-pull to use the new substitute mechanism.Eelco Dolstra3-57/+45
2004-04-22 * Look for GC roots in @localstatedir@/nix/gcroots.Eelco Dolstra1-19/+53
2004-04-21 * Channels. These allow you to stay current with an evolving set ofEelco Dolstra4-47/+146
Nix expressions. To subscribe to a channel (needs to be done only once): nix-channel --add \ http://catamaran.labs.cs.uu.nl/dist/nix/channels/nixpkgs-unstable This just adds the given URL to ~/.nix-channels (which can also be edited manually). To update from all channels: nix-channel --update This fetches the latest expressions and pulls cache manifests. The default Nix expression (~/.nix-defexpr) is made to point to the conjunction of the expressions downloaded from all channels. So to update all installed derivations in the current user environment: nix-channel --update nix-env --upgrade '*' If you are really courageous, you can put this in a cronjob or something. You can subscribe to multiple channels. It is not entirely clear what happens when there are name clashes between derivations from different channels. From nix-env/main.cc it appears that the one with the lowest (highest?) hash will be used, which is pretty meaningless.
2004-04-15 * Allow extra parameters to be passed to Curl through the `CURL_FLAGS'Eelco Dolstra1-1/+1
environment variable. This is useful for passing authentication information (it won't show up in `ps'). Hacky - nix-push should abstract over the use of Curl.
2004-04-14 * `*.gcroot' files can now containing multiple roots.Eelco Dolstra1-3/+7
2004-04-06 * Distributed the wrong file.Eelco Dolstra1-2/+1
2004-04-06 * Switched from wget to curl.Eelco Dolstra6-21/+27
* Made the dependencies on bzip2 and the shell explicit.
2004-03-15 * Make perl a dependency of Nix.Eelco Dolstra5-5/+5
2004-02-20 * Use $(storedir) instead of $(prefix)/store.Eelco Dolstra2-3/+3
2004-02-13 * Only include predecessors that are themselves being pushed.Eelco Dolstra1-1/+6
Otherwise the substitute mechanism can break in subtle ways.
2004-02-10 * Lots of manual stuff. Reference pages for most Nix commands.Eelco Dolstra3-3/+3
* nix-pull now requires the full url to the manifest, i.e., `/MANIFEST/' is no longer automatically appended. * nix-prefetch-url works again.
2004-02-06 * Improvements to profiles. Generations are now per-profile, e.g.,Eelco Dolstra2-4/+4
default -> default-94-link default-82-link -> /nix/store/cc4480... default-83-link -> /nix/store/caeec8... ... default-94-link -> /nix/store/2896ca... experimental -> experimental-2-link experimental-1-link -> /nix/store/cc4480... experimental-2-link -> /nix/store/a3148f... * `--profile' / `-p' -> `--switch-profile' / `-S' * `--link' / `-l' -> `--profile' / `-p' * The default profile is stored in $prefix/var/nix/profiles. $prefix/var/nix/links is gone. Profiles can be stored anywhere. * The current profile is now referenced from ~/.nix-profile, not ~/.nix-userenv. * The roots to the garbage collector now have extension `.gcroot', not `.id'.
2004-01-16 * Test whether the symlink, not its target, exists.Eelco Dolstra1-1/+1
2004-01-16 * Doh! Edited `readmanifest.pm' instead of `readmanifest.pm.in'.Eelco Dolstra2-11/+11
2004-01-14 * Synchronous `nix-pull' with `nix-push'.Eelco Dolstra2-2/+2
* Use curl instead of wget.
2004-01-14 * Improved `nix-push': it now uses HTTP PUT (instead of rsync) to copyEelco Dolstra2-50/+85
files. Target location is no longer hard-coded; it accepts a number of URLs on the command line. * `nix-install-package': compatibility fixes.
2004-01-05 * Implemented Eelco V.'s `-p' command to switch profiles. It switchesEelco Dolstra1-18/+9
the symlink ~/.nix-userenv to the given argument (which defaults to .../links/current). /etc/profile.d/nix-profile creates this symlink if it doesn't exist yet. Example use: $ nix-env -l my_profile -i foo.nix subversion quake $ nix-env -p my_profile I don't like the term "profile". Let's deprecate it :-)