nixos-config/tests/modules/wrapper-manager/default.nix

26 lines
800 B
Nix
Raw Normal View History

{ pkgs ? import <nixpkgs> { }, utils ? import ../../utils.nix { inherit pkgs; } }:
2024-08-15 04:09:23 +00:00
let
inherit (pkgs) lib;
wrapperManager = import ../../../subprojects/wrapper-manager-fds { };
wrapperManagerEval = module: args: wrapperManager.lib.build (args // {
pkgs = args.pkgs or pkgs;
modules = args.extraModules or [ ] ++ [
module
../../../modules/wrapper-manager
../../../modules/wrapper-manager/_private
];
});
runTests = path: args:
lib.mapAttrs (_: v: wrapperManagerEval v args) (import path);
in
{
neovim = runTests ./programs/neovim { };
bubblewrap = runTests ./sandboxing/bubblewrap { };
boxxy = runTests ./sandboxing/boxxy { };
zellij = runTests ./programs/zellij { };
2024-08-22 11:26:08 +00:00
jujutsu = runTests ./programs/jujutsu { };
dconf = runTests ./dconf { };
2024-08-15 04:09:23 +00:00
}