summary refs log tree commit diff
diff options
context:
space:
mode:
authorAlyssa Ross <hi@alyssa.is>2020-05-02 17:38:37 +0000
committerAlyssa Ross <hi@alyssa.is>2020-05-07 14:35:09 +0000
commita6fe22b89ce9fe1ba143fb1da569bbd3d299f24d (patch)
treef8f6bdd1f4866db9157a6ec85c78ed173d0dbd55
parent7ecd0c47d64cd2a3f8390f6cecfcb6e5f4d93658 (diff)
downloadnixpkgs-a6fe22b89ce9fe1ba143fb1da569bbd3d299f24d.tar
nixpkgs-a6fe22b89ce9fe1ba143fb1da569bbd3d299f24d.tar.gz
nixpkgs-a6fe22b89ce9fe1ba143fb1da569bbd3d299f24d.tar.bz2
nixpkgs-a6fe22b89ce9fe1ba143fb1da569bbd3d299f24d.tar.lz
nixpkgs-a6fe22b89ce9fe1ba143fb1da569bbd3d299f24d.tar.xz
nixpkgs-a6fe22b89ce9fe1ba143fb1da569bbd3d299f24d.tar.zst
nixpkgs-a6fe22b89ce9fe1ba143fb1da569bbd3d299f24d.zip
wf-config: init at 0.4.0
-rw-r--r--pkgs/applications/window-managers/wayfire/wf-config.nix40
-rw-r--r--pkgs/top-level/all-packages.nix2
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 {};