feat: add nix flake (#2)

This commit is contained in:
Jappie3 2024-06-28 14:29:12 +02:00 committed by GitHub
commit 8950c117f7
Failed to generate hash of commit
5 changed files with 337 additions and 0 deletions

24
flake.nix Normal file
View file

@ -0,0 +1,24 @@
{
description = "A plugin to make your hyprland cursor more realistic, also adds shake to find.";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
hyprland.url = "git+https://github.com/hyprwm/Hyprland?submodules=1";
};
outputs = {
self,
nixpkgs,
...
} @ inputs: let
forAllSystems = function:
nixpkgs.lib.genAttrs [
"x86_64-linux"
] (system: function nixpkgs.legacyPackages.${system});
in {
packages = forAllSystems (pkgs: {
default = self.packages.${pkgs.system}.hypr-dynamic-cursors;
hypr-dynamic-cursors = pkgs.callPackage ./nix/package.nix {inherit inputs pkgs;};
});
};
}