diff options
-rw-r--r-- | pkgs/applications/window-managers/wayfire/wf-config.nix | 40 | ||||
-rw-r--r-- | pkgs/top-level/all-packages.nix | 2 |
2 files changed, 42 insertions, 0 deletions
diff --git a/pkgs/applications/window-managers/wayfire/wf-config.nix b/pkgs/applications/window-managers/wayfire/wf-config.nix new file mode 100644 index 00000000000..31e0b5a7a49 --- /dev/null +++ b/pkgs/applications/window-managers/wayfire/wf-config.nix @@ -0,0 +1,40 @@ +{ stdenv, lib, fetchFromGitHub, fetchpatch, meson, ninja, pkg-config +, glm, libevdev, libxml2 +}: + +stdenv.mkDerivation rec { + pname = "wf-config"; + version = "0.4.0"; + + src = fetchFromGitHub { + owner = "WayfireWM"; + repo = "wf-config"; + rev = version; + sha256 = "0pb2v71x0dv9s96wi20d9bc9rlxzr85rba7vny6751j7frqr4xf7"; + }; + + patches = [ + # Modify wf::config::build_configuration to allow plugins + # installed outside of Wayfire's prefix. Otherwise, we'd have to + # build all Wayfire plugins in the wayfire derivation. Remove if + # <https://github.com/WayfireWM/wf-config/pull/25> is applied + # upstream. + (fetchpatch { + url = "https://github.com/WayfireWM/wf-config/commit/36578282f774d71eb8ebcd2dfc9d923eb70ac637.patch"; + sha256 = "152744xgi9ha135r7qfyivdl5cgcp9kik224ncwqv9a480m7nwj6"; + }) + ]; + + strictDeps = true; + nativeBuildInputs = [ meson ninja pkg-config ]; + buildInputs = [ libevdev libxml2 ]; + propagatedBuildInputs = [ glm ]; + + meta = with lib; { + homepage = "https://github.com/WayfireWM/wf-config"; + description = "Library for managing configuration files, written for Wayfire"; + license = licenses.mit; + maintainers = with maintainers; [ qyliss wucke13 ]; + platforms = platforms.unix; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 7e885731946..757eaab1d8e 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -22456,6 +22456,8 @@ in way-cooler = throw ("way-cooler is abandoned by its author: " + "https://way-cooler.org/blog/2020/01/09/way-cooler-post-mortem.html"); + wf-config = callPackage ../applications/window-managers/wayfire/wf-config.nix { }; + waypipe = callPackage ../applications/networking/remote/waypipe { }; wayv = callPackage ../tools/X11/wayv {}; |