From 572cb49bb7c1e8e7b8483b90b62188fb1e0d9d3d Mon Sep 17 00:00:00 2001 From: Mihai Fufezan Date: Tue, 8 Oct 2024 23:45:47 +0300 Subject: [PATCH] Nix: add hyprcursor-with-tests --- flake.nix | 2 +- nix/overlays.nix | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index 535cfee..5e6ebf8 100644 --- a/flake.nix +++ b/flake.nix @@ -30,7 +30,7 @@ packages = eachSystem (system: { default = self.packages.${system}.hyprcursor; - inherit (pkgsFor.${system}) hyprcursor; + inherit (pkgsFor.${system}) hyprcursor hyprcursor-with-tests; }); checks = eachSystem (system: self.packages.${system}); diff --git a/nix/overlays.nix b/nix/overlays.nix index a9f0dc0..bb49257 100644 --- a/nix/overlays.nix +++ b/nix/overlays.nix @@ -19,6 +19,10 @@ in { version = version + "+date=" + (mkDate (inputs.self.lastModifiedDate or "19700101")) + "_" + (inputs.self.shortRev or "dirty"); inherit (final) hyprlang; }; + + hyprcursor-with-tests = final.hyprcursor.overrideAttrs (_: _: { + cmakeFlags = [(lib.cmakeBool "INSTALL_TESTS" true)]; + }); }) ]; }