oizys/lib/checks.nix

51 lines
969 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-25 10:00:34 -05:00
inherit (lib) pkgFromSystem pkgsFromSystem overlayFrom;
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"
"nixpkgs-wayland" ]
overlayFrom
;
2024-06-17 10:06:58 -05:00
};
2024-07-25 09:57:26 -05:00
pkgsFrom = pkgsFromSystem system;
pkgFrom = pkgFromSystem system;
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"
] pkgFrom)
++ (with pkgsFrom "hyprland"; [
default
xdg-desktop-portal-hyprland
])
++ [
(pkgsFrom "roc").full
(pkgsFrom "zig2nix").zig.master.bin
];
2024-06-16 17:13:19 -05:00
}
''
mkdir "$out"
'';
}