about summary refs log tree commit diff
path: root/overlays/patches/nixpkgs-wayland/pkgs/gtk-layer-shell/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'overlays/patches/nixpkgs-wayland/pkgs/gtk-layer-shell/default.nix')
-rw-r--r--overlays/patches/nixpkgs-wayland/pkgs/gtk-layer-shell/default.nix35
1 files changed, 35 insertions, 0 deletions
diff --git a/overlays/patches/nixpkgs-wayland/pkgs/gtk-layer-shell/default.nix b/overlays/patches/nixpkgs-wayland/pkgs/gtk-layer-shell/default.nix
new file mode 100644
index 000000000000..e98637e7871c
--- /dev/null
+++ b/overlays/patches/nixpkgs-wayland/pkgs/gtk-layer-shell/default.nix
@@ -0,0 +1,35 @@
+{ stdenv, fetchFromGitHub
+, meson, ninja, pkgconfig, scdoc
+, wayland, libinput, gtk3, gobject-introspection
+}:
+
+let
+  metadata = import ./metadata.nix;
+in
+stdenv.mkDerivation rec {
+  pname = "gtk-layer-shell";
+  version = metadata.rev;
+
+  src = fetchFromGitHub {
+    owner = "wmww";
+    repo = "gtk-layer-shell";
+    rev = version;
+    sha256 = metadata.sha256;
+  };
+
+  nativeBuildInputs = [ meson ninja pkgconfig scdoc ];
+  buildInputs = [
+    wayland libinput gtk3 gobject-introspection
+  ];
+
+  enableParallelBuilding = true;
+
+  meta = with stdenv.lib; {
+    description = "A library to create panels and other desktop components for Wayland using the Layer Shell protocol";
+    homepage    = "https://github.com/wmww/gtk-layer-shell";
+    license     = licenses.mit;
+    platforms   = platforms.linux;
+    maintainers = with maintainers; [ colemickens ];
+  };
+}
+