summary refs log tree commit diff
path: root/pkgs/lib/default.nix
Commit message (Collapse)AuthorAge
* Merging from trunk. I had to do two manual merges, quite trivial I think.Lluís Batlle i Rossell2009-11-19
|\ | | | | | | svn path=/nixpkgs/branches/stdenv-updates/; revision=18472
| * * Move `modifyDerivation' from build-support/vm to lib and rename itEelco Dolstra2009-11-19
| | | | | | | | | | | | to `overrideDerivation'. svn path=/nixpkgs/trunk/; revision=18466
* | Add systems.nix give more control over the increasing list of supportedNicolas Pierron2009-11-19
|/ | | | | | | systems. This is not yet used because it has to be integrated with the current system. svn path=/nixpkgs/branches/stdenv-updates/; revision=18468
* Replace the traversal of modules:Nicolas Pierron2009-09-15
| | | | | | | | | | | | | | | | | | | | | | - Remove handleOptionSets which used option declarations & definitions in the same set. - Add a traversal of modules where "config" and "options" are traverse at the same time. This allow to have accruate error messages with the incriminated files playing a role in the error. This system add a new restriction compare to the previous system: - A module with no structure (option definitions & option declarations & require) should not contain any option declarations. If such module exists you must convert it to the following form: { imports = <content of the require attribute>; options = <set of option declarations>; config = <set of option definitions>; } svn path=/nixpkgs/trunk/; revision=17163
* Adding eProver to buildfarm via maintanershipMichael Raskin2009-08-25
| | | | svn path=/nixpkgs/trunk/; revision=16854
* Extract properties.nix and modules.nix from options.nix.Nicolas Pierron2009-07-13
| | | | svn path=/nixpkgs/trunk/; revision=16339
* Add `stdenv.lib.maintainers'.Ludovic Courtès2009-07-01
| | | | | | Suggested by Eelco Dolstra. svn path=/nixpkgs/trunk/; revision=16126
* * Refactoring: move the types out of options.nix, which is much tooEelco Dolstra2009-06-26
| | | | | | big. Also, they could be useful beyond option handling. svn path=/nixpkgs/trunk/; revision=16055
* * Put strings-with-deps in lib.Eelco Dolstra2009-05-25
| | | | svn path=/nixpkgs/trunk/; revision=15729
* * Move some functions for manipulating meta and name attributes out ofEelco Dolstra2009-03-30
| | | | | | all-packages.nix and into lib. svn path=/nixpkgs/trunk/; revision=14778
* * Doh.Eelco Dolstra2009-02-09
| | | | svn path=/nixpkgs/trunk/; revision=14014
* * Split lib/default.nix into several files, as it had become a bigEelco Dolstra2009-02-09
| | | | | | | | | | | | | | | | | | mess. Also cleaned up some functions: - foldl appeared broken (it recursively called fold). - Renamed logicalAND/logicalOR to and/or. - Removed listOfListsToAttrs, eqStrings: obsolete. - Removed isInList, which does the same thing as elem. - stringToCharacters: don't return a "" at the end of the list. - Renamed concatList to concat, as concatList (singular) is a misnomer: it takes two lists. Likewise, renamed mergeAttr to mergeAttrs. misc.nix still contains a lot of stuff that should be refactored and moved to other files. svn path=/nixpkgs/trunk/; revision=14013
* * Qt updated to 4.4.3 in preparation of upgrading KDE to 4.2.Eelco Dolstra2009-02-03
| | | | svn path=/nixpkgs/trunk/; revision=13974
* Replace addLocation by addErrorContext.Nicolas Pierron2009-01-27
| | | | | | pkgs.lib.addErrorContext add a new line inside the stack trace if this is supported by your nix version. svn path=/nixpkgs/trunk/; revision=13886
* Add missing arguments to the "notHandle" functions of mergeOptionSets and ↵Nicolas Pierron2009-01-25
| | | | | | filterOptionSets. svn path=/nixpkgs/trunk/; revision=13872
* Fix previous commit.Nicolas Pierron2009-01-25
| | | | svn path=/nixpkgs/trunk/; revision=13870
* Remove support for merge function with name argument.Nicolas Pierron2009-01-25
| | | | svn path=/nixpkgs/trunk/; revision=13869
* Name argument of option's merge functions are now obsolete.Nicolas Pierron2009-01-25
| | | | svn path=/nixpkgs/trunk/; revision=13842
* Add a common merge function. (mergeOneOption)Nicolas Pierron2009-01-25
| | | | | | This merge function allow only one definition for an option. svn path=/nixpkgs/trunk/; revision=13841
* Add the "notdef" value when no else-part is defined.Nicolas Pierron2009-01-25
| | | | | | Remove the "notdef" values from the user-defined values. svn path=/nixpkgs/trunk/; revision=13840
* Remove extra arguments from uniqFlatten.Nicolas Pierron2009-01-25
| | | | | | Clean-up fixOptionSetsFun. svn path=/nixpkgs/trunk/; revision=13839
* factor mergeOptionSets and filterOptionSets into the function handleOptionSets.Nicolas Pierron2009-01-25
| | | | svn path=/nixpkgs/trunk/; revision=13838
* Oops. A typo fixMichael Raskin2009-01-08
| | | | svn path=/nixpkgs/trunk/; revision=13727
* Add a (failure-prone) last-chance string mergerMichael Raskin2009-01-08
| | | | svn path=/nixpkgs/trunk/; revision=13726
* fixes for previous commitMarc Weber2008-12-20
| | | | svn path=/nixpkgs/trunk/; revision=13662
* removed mkDerivationByConfiguration, using composableDerivation insteadMarc Weber2008-12-20
| | | | | | qgis, vim_configurable both work now svn path=/nixpkgs/trunk/; revision=13661
* Rewrite uniqFlattenAttr to handle any type of elements with associated keys.Nicolas Pierron2008-12-03
| | | | | | Keys are introduced because manipulated sets cannot be compared safely. svn path=/nixpkgs/trunk/; revision=13574
* updates: istanbul starts without errors. But no window appears.Marc Weber2008-12-02
| | | | svn path=/nixpkgs/trunk/; revision=13554
* added Haskell's foldlMarc Weber2008-12-02
| | | | svn path=/nixpkgs/trunk/; revision=13553
* adding lib function composableDerivationMarc Weber2008-12-02
| | | | | | | | | | providing easy setups of flags and configurations for derivations. configuration is passed via passthru automatically, additional names can be merged with final attrs in an automatic sensible way even supporting fix. fun and funMerge idea by Michael Raskin svn path=/nixpkgs/trunk/; revision=13546
* added prepareDerivationArgsMarc Weber2008-12-02
| | | | svn path=/nixpkgs/trunk/; revision=13545
* adding mergeAttrsByFunc function - its easiy to customize how a name should ↵Marc Weber2008-12-02
| | | | | | be merged - the merge function is passed by the attr set itself (and can be overridden/ extended this way) This code can probably be shortened using zip and the like as proposed by Nicolas Pierron (mailinglist) svn path=/nixpkgs/trunk/; revision=13544
* depreceating functions which have been sud by me only replacements are in ↵Marc Weber2008-12-02
| | | | | | the following commits.. I still have to remove and adopt the code using them svn path=/nixpkgs/trunk/; revision=13543
* added mergeAttr and concatList functions giving // and ++ a nameMarc Weber2008-12-02
| | | | svn path=/nixpkgs/trunk/; revision=13542
* enhancing whatis trace functionMarc Weber2008-12-02
| | | | svn path=/nixpkgs/trunk/; revision=13541
* added debug functions tracing function arguments and resultMarc Weber2008-12-02
| | | | svn path=/nixpkgs/trunk/; revision=13540
* Fix previous commit.Nicolas Pierron2008-11-23
| | | | svn path=/nixpkgs/trunk/; revision=13373
* Add: Handle a way to factor conditions.Nicolas Pierron2008-11-23
| | | | | | | | | | | | | | | | | | | mkIf config.foo.enable { require = [ .. ]; environment = { // infer the else part. extraPackages = [pkgs.foo]; etc = mkThenElse { thenPart = { .. }; elsePart = { .. }; }; }; } Fix: UniqFlattenAttr compare configuration without the "require" attribute. svn path=/nixpkgs/trunk/; revision=13372
* mergeDefaultOption: handle boolean values.Nicolas Pierron2008-11-23
| | | | svn path=/nixpkgs/trunk/; revision=13371
* Add a common pattern used in jobs definition.Nicolas Pierron2008-11-23
| | | | svn path=/nixpkgs/trunk/; revision=13370
* Add mergeStringOption and factor mergeSomethingOption by introducing ↵Nicolas Pierron2008-11-16
| | | | | | mergeTypedOption. svn path=/nixpkgs/trunk/; revision=13310
* Remove obsolete functions.Nicolas Pierron2008-11-16
| | | | svn path=/nixpkgs/trunk/; revision=13309
* Handle apply attribute for each option declared with MkOption.Nicolas Pierron2008-11-16
| | | | | | This is similar to the new-proposal in upstart-jobs except that the default value is also processed with this function. (the existing merge function acts only on extra values). svn path=/nixpkgs/trunk/; revision=13308
* added examples for composedArgsAndFun, introducing setAttrMergeMarc Weber2008-11-04
| | | | svn path=/nixpkgs/trunk/; revision=13193
* meta.function -> passthru.function, not killing other contents of passthruMichael Raskin2008-11-04
| | | | svn path=/nixpkgs/trunk/; revision=13190
* removed finalReference not beeing used anywhereMarc Weber2008-10-28
| | | | svn path=/nixpkgs/trunk/; revision=13137
* simplified isOption reusing typeOfMarc Weber2008-10-26
| | | | svn path=/nixpkgs/trunk/; revision=13119
* update bleeding edge repo managementMarc Weber2008-10-14
| | | | | | | it now figures out the dist name from the url and the revision is added to the url This way a new version doesn't override the old one and you can keep multiple dist tar.gz files svn path=/nixpkgs/trunk/; revision=13065
* The even more incredibly verbose debugging machine...Michael Raskin2008-08-27
| | | | svn path=/nixpkgs/trunk/; revision=12758
* Some diagnostics for NixOS manual helperMichael Raskin2008-08-27
| | | | svn path=/nixpkgs/trunk/; revision=12756