nixpkgs/pkgs/development/libraries/libvncserver/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

64 lines
1.1 KiB
Nix
Raw Normal View History

2021-12-24 16:33:16 +00:00
{ lib
, stdenv
, fetchFromGitHub
, cmake
, libjpeg
, openssl
, zlib
, libgcrypt
, libpng
, withSystemd ? lib.meta.availableOn stdenv.hostPlatform systemd
2021-12-24 16:33:16 +00:00
, systemd
, Carbon
}:
2013-10-21 08:40:30 +00:00
2021-12-24 16:33:16 +00:00
stdenv.mkDerivation rec {
pname = "libvncserver";
version = "0.9.14";
2021-12-24 16:33:16 +00:00
outputs = [ "out" "dev" ];
2021-12-24 16:33:16 +00:00
src = fetchFromGitHub {
owner = "LibVNC";
repo = "libvncserver";
rev = "LibVNCServer-${version}";
sha256 = "sha256-kqVZeCTp+Z6BtB6nzkwmtkJ4wtmjlSQBg05lD02cVvQ=";
};
patches = [
# fix generated pkg-config files
./pkgconfig.patch
];
nativeBuildInputs = [
cmake
];
cmakeFlags = [
"-DWITH_SYSTEMD=${if withSystemd then "ON" else "OFF"}"
];
buildInputs = [
libjpeg
openssl
libgcrypt
libpng
] ++ lib.optionals withSystemd [
systemd
] ++ lib.optionals stdenv.isDarwin [
Carbon
];
propagatedBuildInputs = [
zlib
];
2021-05-17 18:52:30 +00:00
2021-12-24 16:33:16 +00:00
meta = with lib; {
description = "VNC server library";
homepage = "https://libvnc.github.io/";
2021-12-24 16:33:16 +00:00
license = licenses.gpl2Plus;
maintainers = with maintainers; [ raskin ];
platforms = platforms.unix;
};
}