forked from NixOS/nixpkgs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
1 changed file
with
58 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
/* List of categories | ||
```nix | ||
handle = { | ||
# Required | ||
name = "Category Name"; | ||
description = '' | ||
Description of category | ||
''; | ||
relatedCategories = [ related01 related02 . . . ]; | ||
}; | ||
``` | ||
where | ||
- `handle` is the handle you are going to use in nixpkgs expressions; | ||
usually the same as the name but in camelCase | ||
- `name` is the category name | ||
- `description` is a description of the category | ||
- `relatedCategories` is a (possibly empty) list of related categories (like | ||
the `handle` above) | ||
More fields may be added in the future. | ||
When editing this file: | ||
* do not modify any of | ||
- mainCategories | ||
- additionalCategories | ||
- reservedCategories | ||
except by reasons of force majeure (e.g. an update on the Freedesktop.org | ||
Desktop Menu Specification); | ||
* keep the lists alphabetically sorted; | ||
* test the validity of the format with: | ||
nix-build lib/tests/categories.nix | ||
*/ | ||
{ lib }: | ||
|
||
let | ||
mainCategories = { | ||
}; | ||
|
||
additionalCategories = { | ||
}; | ||
|
||
reservedCategories = { | ||
}; | ||
|
||
# "Custom" list of categories for the use of Nixpkgs | ||
nixpkgsAdditionalCategories = { | ||
}; | ||
|
||
allCategories = lib.foldl lib.recursiveUpdate {} [ | ||
mainCategories | ||
additionalCategories | ||
reservedCategories | ||
nixpkgsAdditionalCategories | ||
]; | ||
in | ||
allCategories |