From 52fb1204d6141c59e4ac1814a3bdf8366100ea7d Mon Sep 17 00:00:00 2001 From: Daylin Morgan Date: Thu, 8 Aug 2024 13:54:09 -0500 Subject: [PATCH] fix eval errors in checks --- lib/checks.nix | 42 +++++++++++++++++++++++------------------- 1 file changed, 23 insertions(+), 19 deletions(-) diff --git a/lib/checks.nix b/lib/checks.nix index 6f36846..188baf1 100644 --- a/lib/checks.nix +++ b/lib/checks.nix @@ -10,12 +10,22 @@ let flake = flakeFromSystem system; pkgs = import inputs.nixpkgs { inherit system; - overlays = map [ - "lix-module" - "hyprland-contrib" - "nixpkgs-wayland" - ] flake.overlay; + overlays = [ + (flake.overlay "lix-module") + (flake.overlay "hyprland-contrib") + (flake.overlay "nixpkgs-wayland") + ]; }; + myPackages = map [ + "tsm" + "hyprman" + "zls" + ] flake.pkg; + + hyprPackages = with (flake.pkgs "hyprland"); [ + default + xdg-desktop-portal-hyprland + ]; in { makePackages = @@ -23,24 +33,18 @@ in { src = ./.; nativeBuildInputs = - [ - pkgs.pixi - pkgs.swww - pkgs.nixVersions.stable - ] - ++ (map [ - "tsm" - "hyprman" - "zls" - ] flake.pkg) - ++ (with flake.pkgs "hyprland"; [ - default - xdg-desktop-portal-hyprland + (with pkgs; [ + pixi + swww + nixVersions.stable ]) ++ [ (flake.pkgs "roc").full (flake.pkgs "zig2nix").zig.master.bin - ]; + ] + ++ myPackages + ++ hyprPackages; + } '' mkdir "$out"