oizys/lib/checks.nix

50 lines
907 B
Nix
Raw Normal View History

2024-07-25 09:57:26 -05:00
{
inputs,
system,
lib,
}:
2024-06-17 10:06:58 -05:00
let
2024-07-25 09:57:26 -05:00
inherit (builtins) map;
2024-07-27 11:45:03 -05:00
inherit (lib) flakeFromSystem;
flake = flakeFromSystem system;
2024-06-17 10:06:58 -05:00
pkgs = import inputs.nixpkgs {
inherit system;
2024-07-25 10:00:34 -05:00
overlays = map [
"lix-module"
"hyprland-contrib"
2024-07-25 10:00:42 -05:00
"nixpkgs-wayland"
2024-07-27 11:45:03 -05:00
] flake.overlay;
2024-06-17 10:06:58 -05:00
};
in
2024-06-16 17:13:19 -05:00
{
makePackages =
pkgs.runCommandLocal "build-third-party"
{
src = ./.;
2024-07-25 09:57:26 -05:00
nativeBuildInputs =
[
pkgs.pixi
pkgs.swww
pkgs.nixVersions.stable
]
++ (map [
"tsm"
"hyprman"
"zls"
2024-07-27 11:45:03 -05:00
] flake.pkg)
++ (with flake.pkgs "hyprland"; [
2024-07-25 09:57:26 -05:00
default
xdg-desktop-portal-hyprland
])
++ [
2024-07-27 11:45:03 -05:00
(flake.pkgs "roc").full
(flake.pkgs "zig2nix").zig.master.bin
2024-07-25 09:57:26 -05:00
];
2024-06-16 17:13:19 -05:00
}
''
mkdir "$out"
'';
}