Include the packages in the checks output to resolve the regression introduced in commit8b015b5fa0("flake: use flake-parts (#1208)"). Fixes:8b015b5fa0("flake: use flake-parts (#1208)") Link: https://github.com/danth/stylix/pull/1285 Co-authored-by: NAHO <90870942+trueNAHO@users.noreply.github.com> Co-authored-by: Matt Sturgeon <matt@sturgeon.me.uk> Reviewed-by: Matt Sturgeon <matt@sturgeon.me.uk> Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
52 lines
1.4 KiB
Nix
52 lines
1.4 KiB
Nix
{
|
|
lib,
|
|
inputs,
|
|
self,
|
|
...
|
|
}:
|
|
{
|
|
|
|
perSystem =
|
|
{
|
|
pkgs,
|
|
system,
|
|
config,
|
|
...
|
|
}:
|
|
{
|
|
# Build all packages with 'nix flake check' instead of only verifying they
|
|
# are derivations.
|
|
checks = config.packages;
|
|
|
|
packages =
|
|
let
|
|
testbedPackages = import "${self}/stylix/testbed.nix" {
|
|
inherit pkgs inputs lib;
|
|
};
|
|
|
|
# Discord is not available on arm64. This workaround filters out
|
|
# testbeds using that package, until we have a better way to handle
|
|
# this.
|
|
testbedPackages' =
|
|
if system == "aarch64-linux" then
|
|
lib.filterAttrs (
|
|
name: _: !lib.hasPrefix "testbed:discord:vencord" name
|
|
) testbedPackages
|
|
else
|
|
testbedPackages;
|
|
in
|
|
lib.mkMerge [
|
|
# Testbeds are virtual machines based on NixOS, therefore they are
|
|
# only available for Linux systems.
|
|
(lib.mkIf pkgs.stdenv.hostPlatform.isLinux testbedPackages')
|
|
{
|
|
docs = pkgs.callPackage "${self}/docs" {
|
|
inherit inputs;
|
|
inherit (inputs.nixpkgs.lib) nixosSystem;
|
|
inherit (inputs.home-manager.lib) homeManagerConfiguration;
|
|
};
|
|
palette-generator = pkgs.callPackage "${self}/palette-generator" { };
|
|
}
|
|
];
|
|
};
|
|
}
|