nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib
2, stdenv
3, fetchFromGitHub
4, fetchpatch
5, cmake
6, libjpeg
7, openssl
8, zlib
9, libgcrypt
10, libpng
11, systemd
12, Carbon
13}:
14
15stdenv.mkDerivation rec {
16 pname = "libvncserver";
17 version = "0.9.13";
18
19 outputs = [ "out" "dev" ];
20
21 src = fetchFromGitHub {
22 owner = "LibVNC";
23 repo = "libvncserver";
24 rev = "LibVNCServer-${version}";
25 sha256 = "sha256-gQT/M2u4nWQ0MfO2gWAqY0ZJc7V9eGczGzcsxKmG4H8=";
26 };
27
28 nativeBuildInputs = [
29 cmake
30 ];
31
32 buildInputs = [
33 libjpeg
34 openssl
35 libgcrypt
36 libpng
37 ] ++ lib.optionals stdenv.isLinux [
38 systemd
39 ] ++ lib.optional stdenv.isDarwin [
40 Carbon
41 ];
42
43 propagatedBuildInputs = [
44 zlib
45 ];
46
47 meta = with lib; {
48 description = "VNC server library";
49 homepage = "https://libvnc.github.io/";
50 license = licenses.gpl2Plus;
51 maintainers = with maintainers; [ raskin ];
52 platforms = platforms.unix;
53 };
54}