mirror of
https://github.com/nix-community/dream2nix.git
synced 2024-11-22 06:32:21 +03:00
752936f0c2
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`
20 lines
437 B
Nix
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";
|
|
};
|
|
};
|
|
}
|