Files
nixpkgs/pkgs/by-name/pa/packer/plugins.nix
José Luis Lafuente cd4f09c079 packer: add withPlugins
2026-06-23 13:29:29 +02:00

20 lines
384 B
Nix

{
lib,
newScope,
}:
lib.makeScope newScope (
self:
let
packages = lib.packagesFromDirectoryRecursive {
inherit (self) callPackage;
directory = ./plugins;
};
in
{
mkPackerPlugin = self.callPackage ./extra/mk-packer-plugin.nix { };
}
// lib.mapAttrs' (
name: pkg: lib.nameValuePair (lib.removePrefix "packer-plugin-" name) pkg
) packages
)