about summary refs log tree commit diff
path: root/overlays/patches/nixpkgs-wayland/pkgs/gtk-layer-shell
diff options
context:
space:
mode:
Diffstat (limited to 'overlays/patches/nixpkgs-wayland/pkgs/gtk-layer-shell')
-rw-r--r--overlays/patches/nixpkgs-wayland/pkgs/gtk-layer-shell/default.nix35
-rw-r--r--overlays/patches/nixpkgs-wayland/pkgs/gtk-layer-shell/metadata.nix7
2 files changed, 42 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 ];
+  };
+}
+
diff --git a/overlays/patches/nixpkgs-wayland/pkgs/gtk-layer-shell/metadata.nix b/overlays/patches/nixpkgs-wayland/pkgs/gtk-layer-shell/metadata.nix
new file mode 100644
index 000000000000..a97b1249eb0a
--- /dev/null
+++ b/overlays/patches/nixpkgs-wayland/pkgs/gtk-layer-shell/metadata.nix
@@ -0,0 +1,7 @@
+{
+  repo_git = "https://github.com/wmww/gtk-layer-shell";
+  branch = "master";
+  rev = "f7a9cc8f0ac0c39a594011faf683bdba875bd73a";
+  sha256 = "sha256-i9bwyM5LKJkeOgTSCF0OLZaNCIqQ0AYNwAX/crfAyCc=";
+  revdate = "2020-08-12 19:57:39Z";
+}