mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 21:53:32 +00:00
35 lines
917 B
Nix
35 lines
917 B
Nix
{ lib, stdenv, fetchzip, fetchpatch, cmake
|
|
, libjpeg, openssl, zlib, libgcrypt, libpng
|
|
, systemd
|
|
}:
|
|
|
|
let
|
|
s = # Generated upstream information
|
|
rec {
|
|
pname = "libvncserver";
|
|
version = "0.9.13";
|
|
url = "https://github.com/LibVNC/libvncserver/archive/LibVNCServer-${version}.tar.gz";
|
|
sha256 = "0zz0hslw8b1p3crnfy3xnmrljik359h83dpk64s697dqdcrzy141"; # unpacked archive checksum
|
|
};
|
|
in
|
|
stdenv.mkDerivation {
|
|
inherit (s) pname version;
|
|
src = fetchzip {
|
|
inherit (s) url sha256;
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
buildInputs = [
|
|
libjpeg openssl libgcrypt libpng
|
|
] ++ lib.optional stdenv.isLinux systemd;
|
|
propagatedBuildInputs = [ zlib ];
|
|
meta = {
|
|
inherit (s) version;
|
|
description = "VNC server library";
|
|
homepage = "https://libvnc.github.io/";
|
|
license = lib.licenses.gpl2Plus ;
|
|
maintainers = [lib.maintainers.raskin];
|
|
platforms = lib.platforms.unix;
|
|
};
|
|
}
|