2023-01-25 01:04:23 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, pkg-config
|
|
|
|
, aml
|
|
|
|
, ffmpeg
|
|
|
|
, gnutls
|
|
|
|
, libjpeg_turbo
|
|
|
|
, mesa
|
|
|
|
, pixman
|
|
|
|
, zlib
|
2020-02-23 13:45:18 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "neatvnc";
|
2024-08-03 14:28:47 +00:00
|
|
|
version = "0.8.1";
|
2020-02-23 13:45:18 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "any1";
|
2024-11-05 15:23:57 +00:00
|
|
|
repo = "neatvnc";
|
2020-02-23 13:45:18 +00:00
|
|
|
rev = "v${version}";
|
2024-08-03 14:28:47 +00:00
|
|
|
hash = "sha256-2gPDcFcu1kGIDubguL38Z0K+k7WGFf7DX8yZteedcNg=";
|
2020-02-23 13:45:18 +00:00
|
|
|
};
|
|
|
|
|
2024-11-03 10:29:36 +00:00
|
|
|
patches = [
|
|
|
|
# Fix build with latest ffmpeg
|
|
|
|
# Backport of https://github.com/any1/neatvnc/commit/7e008743bf872598b4fcdb2a821041064ce5dd01
|
|
|
|
# FIXME: remove in next update
|
|
|
|
./fix-ffmpeg.patch
|
|
|
|
];
|
|
|
|
|
2023-01-25 01:04:23 +00:00
|
|
|
strictDeps = true;
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
pkg-config
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
aml
|
|
|
|
ffmpeg
|
|
|
|
gnutls
|
|
|
|
libjpeg_turbo
|
|
|
|
mesa
|
|
|
|
pixman
|
|
|
|
zlib
|
|
|
|
];
|
|
|
|
|
|
|
|
mesonFlags = [
|
|
|
|
(lib.mesonBool "tests" true)
|
|
|
|
];
|
|
|
|
|
|
|
|
doCheck = true;
|
2020-02-29 14:26:17 +00:00
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2020-02-23 13:45:18 +00:00
|
|
|
description = "VNC server library";
|
|
|
|
longDescription = ''
|
|
|
|
This is a liberally licensed VNC server library that's intended to be
|
|
|
|
fast and neat. Goals:
|
|
|
|
- Speed
|
|
|
|
- Clean interface
|
|
|
|
- Interoperability with the Freedesktop.org ecosystem
|
|
|
|
'';
|
2024-11-05 15:23:57 +00:00
|
|
|
homepage = "https://github.com/any1/neatvnc";
|
2020-07-28 12:31:27 +00:00
|
|
|
changelog = "https://github.com/any1/neatvnc/releases/tag/v${version}";
|
2020-02-23 13:45:18 +00:00
|
|
|
license = licenses.isc;
|
|
|
|
platforms = platforms.linux;
|
2022-07-17 13:32:50 +00:00
|
|
|
maintainers = with maintainers; [ nickcao ];
|
2020-02-23 13:45:18 +00:00
|
|
|
};
|
|
|
|
}
|