about summary refs log tree commit diff
path: root/overlays/patches/nixpkgs-wayland/pkgs/aml/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'overlays/patches/nixpkgs-wayland/pkgs/aml/default.nix')
-rw-r--r--overlays/patches/nixpkgs-wayland/pkgs/aml/default.nix42
1 files changed, 42 insertions, 0 deletions
diff --git a/overlays/patches/nixpkgs-wayland/pkgs/aml/default.nix b/overlays/patches/nixpkgs-wayland/pkgs/aml/default.nix
new file mode 100644
index 000000000000..a692cd8c81a3
--- /dev/null
+++ b/overlays/patches/nixpkgs-wayland/pkgs/aml/default.nix
@@ -0,0 +1,42 @@
+{ stdenv, fetchFromGitHub
+, pkgconfig, meson, ninja
+, wayland, wayland-protocols
+, libxkbcommon, libvncserver
+, libpthreadstubs, libdrm
+, pixman, libuv, libglvnd
+, gnutls
+}:
+
+let
+  metadata = import ./metadata.nix;
+in
+stdenv.mkDerivation rec {
+  name = "aml-${version}";
+  version = metadata.rev;
+
+  src = fetchFromGitHub {
+    owner = "any1";
+    repo = "aml";
+    rev = metadata.rev;
+    sha256 = metadata.sha256;
+  };
+
+  nativeBuildInputs = [ pkgconfig meson ninja ];
+  buildInputs = [
+    wayland wayland-protocols
+    libxkbcommon libvncserver
+    libpthreadstubs libdrm
+    pixman libuv libglvnd
+    gnutls
+  ];
+
+  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 ];
+  };
+}