dream2nix/tests/nix-unit/fixtures.nix
DavHau 752936f0c2 groups: implement global and local overrides
implement options:
- options.overrides
- options.groups.<name>.overrides

Having this, it should not be necessary anymore to override members of a group directly. Instead the logic can be bound to package names, either globally for all groups, or locally for a single group.

We should probably also rename :
- `options.commonModule` -> `options.overrideAll`
- `options.groups.<name>.commonModules` -> `options.groups.<name>.overrideAll`
2023-10-29 01:59:54 +00:00

20 lines
437 B
Nix

{dream2nix}: rec {
basic-derivation = named-derivation "hello";
named-derivation = name: {
# select builtins.derivation as a backend for this package
imports = [
dream2nix.modules.dream2nix.builtins-derivation
];
inherit name;
version = "1.0.0";
# set options
builtins-derivation = {
builder = "/bin/sh";
args = ["-c" "echo $name > $out"];
system = "x86_64-linux";
};
};
}