diff --git a/packages/build-support/default.nix b/packages/build-support/default.nix index 8adcf25..e914009 100644 --- a/packages/build-support/default.nix +++ b/packages/build-support/default.nix @@ -3,6 +3,8 @@ { imports = [ ./options.nix + + ./drv-parts ]; builders = rec { diff --git a/packages/build-support/drv-parts/backends/default.nix b/packages/build-support/drv-parts/backends/default.nix new file mode 100644 index 0000000..86e0060 --- /dev/null +++ b/packages/build-support/drv-parts/backends/default.nix @@ -0,0 +1,5 @@ +{ + imports = [ + ./options.nix + ]; +} diff --git a/packages/build-support/drv-parts/backends/options.nix b/packages/build-support/drv-parts/backends/options.nix new file mode 100644 index 0000000..34441ed --- /dev/null +++ b/packages/build-support/drv-parts/backends/options.nix @@ -0,0 +1,12 @@ +{ lib, ... }: +with lib; + +{ + options = { + drv-backends = mkOption { + description = "drv-parts backends"; + type = with types; attrsOf raw; + default = {}; + }; + }; +} diff --git a/packages/build-support/drv-parts/default.nix b/packages/build-support/drv-parts/default.nix new file mode 100644 index 0000000..97ec39b --- /dev/null +++ b/packages/build-support/drv-parts/default.nix @@ -0,0 +1,10 @@ +{ config, inputs, ... }: + +{ + imports = [ + ./backends + ]; + _module.args = { + drv-backends = inputs.drv-parts.drv-backends // config.drv-backends; + }; +}