about summary refs log tree commit diff
path: root/overlays/patches/nixpkgs-wayland/pkgs/neatvnc
diff options
context:
space:
mode:
Diffstat (limited to 'overlays/patches/nixpkgs-wayland/pkgs/neatvnc')
-rw-r--r--overlays/patches/nixpkgs-wayland/pkgs/neatvnc/default.nix44
-rw-r--r--overlays/patches/nixpkgs-wayland/pkgs/neatvnc/metadata.nix7
2 files changed, 51 insertions, 0 deletions
diff --git a/overlays/patches/nixpkgs-wayland/pkgs/neatvnc/default.nix b/overlays/patches/nixpkgs-wayland/pkgs/neatvnc/default.nix
new file mode 100644
index 000000000000..049a45504d60
--- /dev/null
+++ b/overlays/patches/nixpkgs-wayland/pkgs/neatvnc/default.nix
@@ -0,0 +1,44 @@
+{ stdenv, fetchFromGitHub
+, pkgconfig, meson, ninja
+, wayland, wayland-protocols
+, libxkbcommon, libvncserver
+, libpthreadstubs, libdrm
+, pixman, libuv, libglvnd
+, gnutls
+, aml, libjpeg_turbo
+}:
+
+let
+  metadata = import ./metadata.nix;
+in
+stdenv.mkDerivation rec {
+  name = "neatvnc-${version}";
+  version = metadata.rev;
+
+  src = fetchFromGitHub {
+    owner = "any1";
+    repo = "neatvnc";
+    rev = metadata.rev;
+    sha256 = metadata.sha256;
+  };
+
+  nativeBuildInputs = [ pkgconfig meson ninja ];
+  buildInputs = [
+    wayland wayland-protocols
+    libxkbcommon libvncserver
+    libpthreadstubs libdrm
+    pixman libuv libglvnd
+    gnutls
+    aml libjpeg_turbo
+  ];
+
+  enableParallelBuilding = true;
+
+  meta = with stdenv.lib; {
+    description = "liberally licensed VNC server library that's intended to be fast and neat";
+    homepage    = "https://github.com/any1/neatvnc";
+    license     = licenses.mit;
+    platforms   = platforms.linux;
+    maintainers = with maintainers; [ colemickens ];
+  };
+}
diff --git a/overlays/patches/nixpkgs-wayland/pkgs/neatvnc/metadata.nix b/overlays/patches/nixpkgs-wayland/pkgs/neatvnc/metadata.nix
new file mode 100644
index 000000000000..0652463a1482
--- /dev/null
+++ b/overlays/patches/nixpkgs-wayland/pkgs/neatvnc/metadata.nix
@@ -0,0 +1,7 @@
+{
+  repo_git = "https://github.com/any1/neatvnc";
+  branch = "master";
+  rev = "6ad4aba374153d36c99ea5073b747697774f4e3e";
+  sha256 = "036kzhbabbwc3gvsw8kqf6rs0gh8kgn6i0by9pxski38mi0qs1qs";
+  revdate = "2020-07-26 13:52:00Z";
+}