2021-12-24 16:33:16 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
|
|
|
, libjpeg
|
|
|
|
, openssl
|
|
|
|
, zlib
|
|
|
|
, libgcrypt
|
|
|
|
, libpng
|
2023-05-05 07:08:00 +00:00
|
|
|
, withSystemd ? lib.meta.availableOn stdenv.hostPlatform systemd
|
2021-12-24 16:33:16 +00:00
|
|
|
, systemd
|
|
|
|
, Carbon
|
2013-10-20 13:34:42 +00:00
|
|
|
}:
|
2013-10-21 08:40:30 +00:00
|
|
|
|
2021-12-24 16:33:16 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "libvncserver";
|
2022-12-22 14:24:43 +00:00
|
|
|
version = "0.9.14";
|
2021-12-24 16:33:16 +00:00
|
|
|
|
2022-01-08 23:11:07 +00:00
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
|
2021-12-24 16:33:16 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "LibVNC";
|
|
|
|
repo = "libvncserver";
|
|
|
|
rev = "LibVNCServer-${version}";
|
2022-12-22 14:24:43 +00:00
|
|
|
sha256 = "sha256-kqVZeCTp+Z6BtB6nzkwmtkJ4wtmjlSQBg05lD02cVvQ=";
|
2008-10-04 15:13:31 +00:00
|
|
|
};
|
2020-06-25 21:34:02 +00:00
|
|
|
|
2024-08-22 13:16:06 +00:00
|
|
|
patches = [
|
|
|
|
# fix generated pkg-config files
|
|
|
|
./pkgconfig.patch
|
|
|
|
];
|
|
|
|
|
2022-01-08 23:11:07 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
];
|
|
|
|
|
2023-05-05 07:08:00 +00:00
|
|
|
cmakeFlags = [
|
|
|
|
"-DWITH_SYSTEMD=${if withSystemd then "ON" else "OFF"}"
|
|
|
|
];
|
|
|
|
|
2022-01-08 23:11:07 +00:00
|
|
|
buildInputs = [
|
|
|
|
libjpeg
|
|
|
|
openssl
|
|
|
|
libgcrypt
|
|
|
|
libpng
|
2023-05-05 07:08:00 +00:00
|
|
|
] ++ lib.optionals withSystemd [
|
2022-01-08 23:11:07 +00:00
|
|
|
systemd
|
2022-10-06 16:38:53 +00:00
|
|
|
] ++ lib.optionals stdenv.isDarwin [
|
2022-01-08 23:11:07 +00:00
|
|
|
Carbon
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
zlib
|
|
|
|
];
|
2021-05-17 18:52:30 +00:00
|
|
|
|
2021-12-24 16:33:16 +00:00
|
|
|
meta = with lib; {
|
2019-11-29 18:14:40 +00:00
|
|
|
description = "VNC server library";
|
|
|
|
homepage = "https://libvnc.github.io/";
|
2021-12-24 16:33:16 +00:00
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
maintainers = with maintainers; [ raskin ];
|
|
|
|
platforms = platforms.unix;
|
2008-10-04 15:13:31 +00:00
|
|
|
};
|
|
|
|
}
|