nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ stdenv, fetchzip, fetchpatch, cmake
2, libjpeg, openssl, zlib, libgcrypt, libpng
3, systemd
4}:
5
6let
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 };
14in
15stdenv.mkDerivation {
16 inherit (s) pname version;
17 src = fetchzip {
18 inherit (s) url sha256;
19 };
20
21 nativeBuildInputs = [ cmake ];
22 buildInputs = [
23 libjpeg openssl libgcrypt libpng
24 ] ++ stdenv.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 = stdenv.lib.licenses.gpl2Plus ;
31 maintainers = [stdenv.lib.maintainers.raskin];
32 platforms = stdenv.lib.platforms.unix;
33 };
34}