oizys/lib/checks.nix

54 lines
937 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-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
myPackages = map [
"tsm"
"hyprman"
"zls"
] flake.pkg;
hyprPackages = with (flake.pkgs "hyprland"); [
default
xdg-desktop-portal-hyprland
];
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 =
2024-08-08 13:54:09 -05:00
(with pkgs; [
pixi
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
]
++ myPackages
++ hyprPackages;
2024-06-16 17:13:19 -05:00
}
''
mkdir "$out"
'';
}