Author: simons
Date: Tue Aug 16 13:03:46 2011
New Revision: 28610
URL: https://svn.nixos.org/websvn/nix/?rev=28610&sc=1
Log:
pkgs/misc/misc.nix: document the fact that 'collection' does not detect file
collisions
Modified:
nixpkgs/trunk/pkgs/misc/misc.nix
Modified: nixpkgs/trunk/pkgs/misc/misc.nix
==============================================================================
--- nixpkgs/trunk/pkgs/misc/misc.nix Tue Aug 16 13:03:38 2011 (r28609)
+++ nixpkgs/trunk/pkgs/misc/misc.nix Tue Aug 16 13:03:46 2011 (r28610)
@@ -6,18 +6,20 @@
{
- /*
+ /*
+ Usage example creating a derivation installing ruby, sup and a lib:
- usage example creating a derivation installing ruby, sup and a lib:
-
- packageOverrides = {
- rubyCollection = collection {
- name = "ruby";
- list = let l = rubyLibs; in
- [ pkgs.ruby l.chronic l.sup ];
- };
- }
+ packageOverrides = {
+ rubyCollection = collection {
+ name = "ruby";
+ list = let l = rubyLibs; in
+ [ pkgs.ruby l.chronic l.sup ];
+ };
+ }
+ Warning: Using this function, it is possible to install packages
+ into one profile that have file collisions, and these will not be
+ detected.
*/
collection = {list, name} : runCommand "collection-${name}" {} ''
mkdir -p $out/nix-support
_______________________________________________
nix-commits mailing list
[email protected]
http://mail.cs.uu.nl/mailman/listinfo/nix-commits