blob: c8733cd3efeca98de854c1dd5d18bbe622970227 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
# This is content for the `Data` struct, written in intentionally
# convoluted Nix code.
let
mkFlavour = flavour: name: {
inherit name;
value = flavour;
};
tasty = mkFlavour "Tasty";
okay = mkFlavour "Okay";
eww = mkFlavour "Eww";
in
{
name = "exhaustive list of foods";
foods = builtins.listToAttrs [
(tasty "beef")
(okay "tomatoes")
(eww "olives")
(tasty "coffee")
];
}
|