nixpkgs/pkgs/development/libraries/libvncserver/default.nix
Artturin 7e49471316 treewide: optional -> optionals where the argument is a list
the argument to optional should not be list
2022-10-10 15:40:21 +03:00

55 lines
897 B
Nix

{ lib
, stdenv
, fetchFromGitHub
, fetchpatch
, cmake
, libjpeg
, openssl
, zlib
, libgcrypt
, libpng
, systemd
, Carbon
}:
stdenv.mkDerivation rec {
pname = "libvncserver";
version = "0.9.13";
outputs = [ "out" "dev" ];
src = fetchFromGitHub {
owner = "LibVNC";
repo = "libvncserver";
rev = "LibVNCServer-${version}";
sha256 = "sha256-gQT/M2u4nWQ0MfO2gWAqY0ZJc7V9eGczGzcsxKmG4H8=";
};
nativeBuildInputs = [
cmake
];
buildInputs = [
libjpeg
openssl
libgcrypt
libpng
] ++ lib.optionals stdenv.isLinux [
systemd
] ++ lib.optionals stdenv.isDarwin [
Carbon
];
propagatedBuildInputs = [
zlib
];
meta = with lib; {
description = "VNC server library";
homepage = "https://libvnc.github.io/";
license = licenses.gpl2Plus;
maintainers = with maintainers; [ raskin ];
platforms = platforms.unix;
};
}