oizys/lib/checks.nix

49 lines
986 B
Nix

{
inputs,
system,
lib,
}:
let
inherit (builtins) map;
inherit (lib) pkgFromSystem pkgsFromSystem;
pkgs = import inputs.nixpkgs {
inherit system;
overlays = [
inputs.lix-module.overlays.default
inputs.hyprland-contrib.overlays.default
inputs.nixpkgs-wayland.overlay
];
};
pkgsFrom = pkgsFromSystem system;
pkgFrom = pkgFromSystem system;
in
{
makePackages =
pkgs.runCommandLocal "build-third-party"
{
src = ./.;
nativeBuildInputs =
[
pkgs.pixi
pkgs.swww
pkgs.nixVersions.stable
]
++ (map [
"tsm"
"hyprman"
"zls"
] pkgFrom)
++ (with pkgsFrom "hyprland"; [
default
xdg-desktop-portal-hyprland
])
++ [
(pkgsFrom "roc").full
(pkgsFrom "zig2nix").zig.master.bin
];
}
''
mkdir "$out"
'';
}