Skip to content

How to build and install custom plugins on NixOS #8317

Answered by fufexan
djelenc asked this question in Q&A
Discussion options

You must be logged in to vote

You can have for example

{pkgs, ...}: {
  wayland.windowManager.hyprland.plugins = [
    (pkgs.callPackage ({
      lib,
      fetchFromGitHub,
      cmake,
      hyprland,
      hyprlandPlugins,
    }:
      hyprlandPlugins.mkHyprlandPlugin pkgs.hyprland {
        pluginName = "hy3";
        version = "0.39.1";

        src = fetchFromGitHub {
          owner = "outfoxxed";
          repo = "hy3";
          rev = "hl0.39.1";
          hash = "sha256-PqVld+oFziSt7VZTNBomPyboaMEAIkerPQFwNJL/Wjw=";
        };

        # any nativeBuildInputs required for the plugin
        nativeBuildInputs = [cmake];

        # set any buildInputs that are not already included in Hyprland
        # by defa…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@djelenc
Comment options

Answer selected by djelenc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants