packages/build-support: add drv-parts custom backends support

This commit is contained in:
Max Headroom 2022-12-18 14:20:18 +01:00
parent 9afdc976b5
commit ef1304c326
4 changed files with 29 additions and 0 deletions

View file

@ -3,6 +3,8 @@
{ {
imports = [ imports = [
./options.nix ./options.nix
./drv-parts
]; ];
builders = rec { builders = rec {

View file

@ -0,0 +1,5 @@
{
imports = [
./options.nix
];
}

View file

@ -0,0 +1,12 @@
{ lib, ... }:
with lib;
{
options = {
drv-backends = mkOption {
description = "drv-parts backends";
type = with types; attrsOf raw;
default = {};
};
};
}

View file

@ -0,0 +1,10 @@
{ config, inputs, ... }:
{
imports = [
./backends
];
_module.args = {
drv-backends = inputs.drv-parts.drv-backends // config.drv-backends;
};
}