2021-12-26 17:43:05 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, fetchpatch
|
|
|
|
, cmake
|
|
|
|
, libjpeg
|
|
|
|
, openssl
|
|
|
|
, zlib
|
|
|
|
, libgcrypt
|
|
|
|
, libpng
|
|
|
|
, systemd
|
|
|
|
, Carbon
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
2021-12-26 17:43:05 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "libvncserver";
|
2022-12-28 21:21:41 +00:00
|
|
|
version = "0.9.14";
|
2021-12-26 17:43:05 +00:00
|
|
|
|
2022-01-13 20:06:32 +00:00
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
|
2021-12-26 17:43:05 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "LibVNC";
|
|
|
|
repo = "libvncserver";
|
|
|
|
rev = "LibVNCServer-${version}";
|
2022-12-28 21:21:41 +00:00
|
|
|
sha256 = "sha256-kqVZeCTp+Z6BtB6nzkwmtkJ4wtmjlSQBg05lD02cVvQ=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
2020-07-18 16:06:22 +00:00
|
|
|
|
2022-01-13 20:06:32 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
libjpeg
|
|
|
|
openssl
|
|
|
|
libgcrypt
|
|
|
|
libpng
|
|
|
|
] ++ lib.optionals stdenv.isLinux [
|
|
|
|
systemd
|
2022-10-30 15:09:59 +00:00
|
|
|
] ++ lib.optionals stdenv.isDarwin [
|
2022-01-13 20:06:32 +00:00
|
|
|
Carbon
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
zlib
|
|
|
|
];
|
2021-05-20 23:08:51 +00:00
|
|
|
|
2021-12-26 17:43:05 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "VNC server library";
|
|
|
|
homepage = "https://libvnc.github.io/";
|
2021-12-26 17:43:05 +00:00
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
maintainers = with maintainers; [ raskin ];
|
|
|
|
platforms = platforms.unix;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|