oizys/lib/checks.nix

51 lines
1,001 B
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
selfPackages = (attrValues self.packages.${pkgs.system});
2024-06-17 10:06:58 -05:00
in
2024-08-09 11:57:03 -05:00
# selfPackages = self.packages.${pkgs.system} |> attrValues;
2024-06-16 17:13:19 -05:00
{
makePackages =
pkgs.runCommandLocal "build-third-party"
{
src = ./.;
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
nixVersions.stable
2024-07-25 09:57:26 -05:00
])
++ [
2024-07-27 11:45:03 -05:00
(flake.pkgs "roc").full
(flake.pkgs "zig2nix").zig.master.bin
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"
'';
}