mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-14 11:14:36 +02:00
These should be set up in a dedicated test file, owned by `tests/default.nix`. Also refactored to use `callTest`.
21 lines
464 B
Nix
21 lines
464 B
Nix
{
|
|
callTest,
|
|
lib,
|
|
stdenv,
|
|
}:
|
|
let
|
|
inherit (stdenv.hostPlatform)
|
|
isLinux
|
|
isDarwin
|
|
;
|
|
in
|
|
{
|
|
home-manager-module = (callTest ./hm.nix { }).activationPackage;
|
|
home-manager-extra-files-byte-compiling = callTest ./hm-extra-files-byte-compiling.nix { };
|
|
}
|
|
// lib.optionalAttrs isLinux {
|
|
nixos-module = (callTest ./nixos.nix { }).config.system.build.toplevel;
|
|
}
|
|
// lib.optionalAttrs isDarwin {
|
|
darwin-module = (callTest ./darwin.nix { }).system;
|
|
}
|