oizys/lib/checks.nix

52 lines
1 KiB
Nix
Raw Normal View History

2024-07-25 09:57:26 -05:00
{
inputs,
system,
lib,
2024-08-09 11:57:03 -05:00
self,
2024-07-25 09:57:26 -05:00
}:
2024-06-17 10:06:58 -05:00
let
2024-08-09 11:57:03 -05:00
inherit (lib) flakeFromSystem attrValues;
2024-07-27 11:45:03 -05:00
flake = flakeFromSystem system;
2024-06-17 10:06:58 -05:00
pkgs = import inputs.nixpkgs {
inherit system;
2024-08-08 13:54:09 -05:00
overlays = [
(flake.overlay "lix-module")
(flake.overlay "hyprland-contrib")
(flake.overlay "nixpkgs-wayland")
];
2024-06-17 10:06:58 -05:00
};
2024-08-08 13:54:09 -05:00
hyprPackages = with (flake.pkgs "hyprland"); [
default
xdg-desktop-portal-hyprland
];
2024-08-09 11:57:03 -05:00
2024-08-09 13:56:36 -05:00
# TODO: start using pipes once support lands in nixd
# selfPackages = self.packages.${pkgs.system} |> attrValues;
2024-08-10 17:26:38 -05:00
selfPackages = attrValues self.packages.${pkgs.system};
2024-06-17 10:06:58 -05:00
in
2024-06-16 17:13:19 -05:00
{
makePackages =
pkgs.runCommandLocal "build-third-party"
{
2024-07-25 09:57:26 -05:00
nativeBuildInputs =
2024-08-09 11:57:03 -05:00
# packages from overlays
2024-08-08 13:54:09 -05:00
(with pkgs; [
swww
2024-08-10 17:26:38 -05:00
nixVersions.git
2024-07-25 09:57:26 -05:00
])
++ [
2024-07-27 11:45:03 -05:00
(flake.pkgs "roc").full
2024-08-09 13:56:36 -05:00
(flake.pkgs "zig-overlay").master
(flake.pkg "zls")
2024-08-08 13:54:09 -05:00
]
2024-08-09 11:57:03 -05:00
++ hyprPackages
++ selfPackages;
2024-06-16 17:13:19 -05:00
}
''
mkdir "$out"
'';
}