packages/build-support: add drv-parts custom backends support
This commit is contained in:
parent
9afdc976b5
commit
ef1304c326
4 changed files with 29 additions and 0 deletions
|
@ -3,6 +3,8 @@
|
|||
{
|
||||
imports = [
|
||||
./options.nix
|
||||
|
||||
./drv-parts
|
||||
];
|
||||
|
||||
builders = rec {
|
||||
|
|
5
packages/build-support/drv-parts/backends/default.nix
Normal file
5
packages/build-support/drv-parts/backends/default.nix
Normal file
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
imports = [
|
||||
./options.nix
|
||||
];
|
||||
}
|
12
packages/build-support/drv-parts/backends/options.nix
Normal file
12
packages/build-support/drv-parts/backends/options.nix
Normal file
|
@ -0,0 +1,12 @@
|
|||
{ lib, ... }:
|
||||
with lib;
|
||||
|
||||
{
|
||||
options = {
|
||||
drv-backends = mkOption {
|
||||
description = "drv-parts backends";
|
||||
type = with types; attrsOf raw;
|
||||
default = {};
|
||||
};
|
||||
};
|
||||
}
|
10
packages/build-support/drv-parts/default.nix
Normal file
10
packages/build-support/drv-parts/default.nix
Normal file
|
@ -0,0 +1,10 @@
|
|||
{ config, inputs, ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
./backends
|
||||
];
|
||||
_module.args = {
|
||||
drv-backends = inputs.drv-parts.drv-backends // config.drv-backends;
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue