diff --git a/borders-plus-plus/default.nix b/borders-plus-plus/default.nix new file mode 100644 index 0000000..9deb078 --- /dev/null +++ b/borders-plus-plus/default.nix @@ -0,0 +1,21 @@ +{ + lib, + stdenv, + hyprland, +}: +stdenv.mkDerivation { + name = "borders-plus-plus"; + version = "0.1"; + src = ./.; + + inherit (hyprland) nativeBuildInputs; + + buildInputs = [hyprland] ++ hyprland.buildInputs; + + meta = with lib; { + homepage = "https://github.com/hyprwm/hyprland-plugins"; + description = "Hyprland borders-plus-plus plugin"; + license = licenses.bsd3; + platforms = platforms.linux; + }; +} diff --git a/csgo-vulkan-fix/default.nix b/csgo-vulkan-fix/default.nix new file mode 100644 index 0000000..3abbbf5 --- /dev/null +++ b/csgo-vulkan-fix/default.nix @@ -0,0 +1,21 @@ +{ + lib, + stdenv, + hyprland, +}: +stdenv.mkDerivation { + name = "csgo-vulkan-fix"; + version = "0.1"; + src = ./.; + + inherit (hyprland) nativeBuildInputs; + + buildInputs = [hyprland] ++ hyprland.buildInputs; + + meta = with lib; { + homepage = "https://github.com/hyprwm/hyprland-plugins"; + description = "Hyprland CS:GO Vulkan fix"; + license = licenses.bsd3; + platforms = platforms.linux; + }; +} diff --git a/flake.lock b/flake.lock new file mode 100644 index 0000000..eefbf26 --- /dev/null +++ b/flake.lock @@ -0,0 +1,112 @@ +{ + "nodes": { + "hyprland": { + "inputs": { + "hyprland-protocols": "hyprland-protocols", + "nixpkgs": "nixpkgs", + "wlroots": "wlroots", + "xdph": "xdph" + }, + "locked": { + "lastModified": 1682548480, + "narHash": "sha256-aycGKS+Vv/lQQFaYJNpK054leLKIapfUobgzt8fohFA=", + "owner": "hyprwm", + "repo": "Hyprland", + "rev": "72d2f33b34951b7f5be6cdbc302b1c6a33cbf60f", + "type": "github" + }, + "original": { + "owner": "hyprwm", + "repo": "Hyprland", + "type": "github" + } + }, + "hyprland-protocols": { + "inputs": { + "nixpkgs": [ + "hyprland", + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1681065697, + "narHash": "sha256-QPzwwlGKX95tl6ZEshboZbEwwAXww6lNLdVYd6T9Mrc=", + "owner": "hyprwm", + "repo": "hyprland-protocols", + "rev": "4d29e48433270a2af06b8bc711ca1fe5109746cd", + "type": "github" + }, + "original": { + "owner": "hyprwm", + "repo": "hyprland-protocols", + "type": "github" + } + }, + "nixpkgs": { + "locked": { + "lastModified": 1682453498, + "narHash": "sha256-WoWiAd7KZt5Eh6n+qojcivaVpnXKqBsVgpixpV2L9CE=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "c8018361fa1d1650ee8d4b96294783cf564e8a7f", + "type": "github" + }, + "original": { + "owner": "NixOS", + "ref": "nixos-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, + "root": { + "inputs": { + "hyprland": "hyprland" + } + }, + "wlroots": { + "flake": false, + "locked": { + "host": "gitlab.freedesktop.org", + "lastModified": 1682436395, + "narHash": "sha256-GGEjkQO9m7YLYIXIXM76HWdhjg4Ye+oafOtyaFAYKI4=", + "owner": "wlroots", + "repo": "wlroots", + "rev": "6830bfc17fd94709e2cdd4da0af989f102a26e59", + "type": "gitlab" + }, + "original": { + "host": "gitlab.freedesktop.org", + "owner": "wlroots", + "repo": "wlroots", + "type": "gitlab" + } + }, + "xdph": { + "inputs": { + "hyprland-protocols": [ + "hyprland", + "hyprland-protocols" + ], + "nixpkgs": [ + "hyprland", + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1682439384, + "narHash": "sha256-zHDa8LCZs05TZHQSIZ3ucwyMPglBGHcqTBzfkLjYXTM=", + "owner": "hyprwm", + "repo": "xdg-desktop-portal-hyprland", + "rev": "c0e233955568fbea4e859336f6d3d14d51294d7c", + "type": "github" + }, + "original": { + "owner": "hyprwm", + "repo": "xdg-desktop-portal-hyprland", + "type": "github" + } + } + }, + "root": "root", + "version": 7 +} diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..ff54d15 --- /dev/null +++ b/flake.nix @@ -0,0 +1,27 @@ +{ + description = "Hyprland Plugins"; + + inputs.hyprland.url = "github:hyprwm/Hyprland"; + + outputs = { + self, + hyprland, + }: let + inherit (hyprland.inputs) nixpkgs; + withPkgsFor = fn: nixpkgs.lib.genAttrs (builtins.attrNames hyprland.packages) (system: fn system nixpkgs.legacyPackages.${system}); + in { + packages = withPkgsFor (system: pkgs: { + borders-plus-plus = pkgs.callPackage ./borders-plus-plus {inherit (hyprland.packages.${system}) hyprland;}; + csgo-vulkan-fix = pkgs.callPackage ./csgo-vulkan-fix {inherit (hyprland.packages.${system}) hyprland;}; + hyprbars = pkgs.callPackage ./hyprbars {inherit (hyprland.packages.${system}) hyprland;}; + }); + + devShells = withPkgsFor (system: pkgs: { + default = pkgs.mkShell { + name = "hyprland-plugins"; + buildInputs = [hyprland.packages.${system}.hyprland]; + inputsFrom = [hyprland.packages.${system}.hyprland]; + }; + }); + }; +}