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)]; + }); }) ]; }