linux_xanmod: 5.11.14 -> 5.11.15
[NixPkgs.git] / pkgs / development / libraries / libvncserver / default.nix
blob7c8d4a76fc9542b3ff3c35da39d06b0ebf96d9dd
1 { lib, stdenv, fetchzip, fetchpatch, cmake
2 , libjpeg, openssl, zlib, libgcrypt, libpng
3 , systemd
4 }:
6 let
7   s = # Generated upstream information
8   rec {
9     pname = "libvncserver";
10     version = "0.9.13";
11     url = "https://github.com/LibVNC/libvncserver/archive/LibVNCServer-${version}.tar.gz";
12     sha256 = "0zz0hslw8b1p3crnfy3xnmrljik359h83dpk64s697dqdcrzy141"; # unpacked archive checksum
13   };
15 stdenv.mkDerivation {
16   inherit (s) pname version;
17   src = fetchzip {
18     inherit (s) url sha256;
19   };
21   nativeBuildInputs = [ cmake ];
22   buildInputs = [
23     libjpeg openssl libgcrypt libpng
24   ] ++ lib.optional stdenv.isLinux systemd;
25   propagatedBuildInputs = [ zlib ];
26   meta = {
27     inherit (s) version;
28     description = "VNC server library";
29     homepage = "https://libvnc.github.io/";
30     license = lib.licenses.gpl2Plus ;
31     maintainers = [lib.maintainers.raskin];
32     platforms = lib.platforms.unix;
33   };