mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 15:13:46 +00:00
0dc0b93db1
Fixes CVE-2020-29260. https://github.com/LibVNC/libvncserver/releases/tag/LibVNCServer-0.9.14
55 lines
897 B
Nix
55 lines
897 B
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, fetchpatch
|
|
, cmake
|
|
, libjpeg
|
|
, openssl
|
|
, zlib
|
|
, libgcrypt
|
|
, libpng
|
|
, systemd
|
|
, Carbon
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "libvncserver";
|
|
version = "0.9.14";
|
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "LibVNC";
|
|
repo = "libvncserver";
|
|
rev = "LibVNCServer-${version}";
|
|
sha256 = "sha256-kqVZeCTp+Z6BtB6nzkwmtkJ4wtmjlSQBg05lD02cVvQ=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
];
|
|
|
|
buildInputs = [
|
|
libjpeg
|
|
openssl
|
|
libgcrypt
|
|
libpng
|
|
] ++ lib.optionals stdenv.isLinux [
|
|
systemd
|
|
] ++ lib.optionals stdenv.isDarwin [
|
|
Carbon
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
zlib
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "VNC server library";
|
|
homepage = "https://libvnc.github.io/";
|
|
license = licenses.gpl2Plus;
|
|
maintainers = with maintainers; [ raskin ];
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|