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

40 lines
1.1 KiB
Nix
Raw Normal View History

2020-02-23 05:45:18 -08:00
{ stdenv, fetchFromGitHub, meson, pkg-config, ninja
2020-07-28 05:31:27 -07:00
, pixman, gnutls, libdrm, libjpeg_turbo, zlib, aml
2020-02-23 05:45:18 -08:00
}:
stdenv.mkDerivation rec {
pname = "neatvnc";
2020-09-26 03:12:53 -07:00
version = "0.3.1";
2020-02-23 05:45:18 -08:00
src = fetchFromGitHub {
owner = "any1";
repo = pname;
rev = "v${version}";
2020-09-26 03:12:53 -07:00
sha256 = "1209dzlmqf5p1cqzf6kss5inwgj644ynrh9qgpjf1kskqwfxn1c4";
2020-02-23 05:45:18 -08:00
};
2020-09-23 05:37:12 -07:00
postPatch = ''
substituteInPlace meson.build --replace \
"version: '0.2.0'" "version: '${version}'"
'';
2020-02-23 05:45:18 -08:00
nativeBuildInputs = [ meson pkg-config ninja ];
2020-07-28 05:31:27 -07:00
buildInputs = [ pixman gnutls libdrm libjpeg_turbo zlib aml ];
2020-02-23 05:45:18 -08:00
meta = with stdenv.lib; {
description = "A VNC server library";
longDescription = ''
This is a liberally licensed VNC server library that's intended to be
fast and neat. Goals:
- Speed
- Clean interface
- Interoperability with the Freedesktop.org ecosystem
'';
inherit (src.meta) homepage;
2020-07-28 05:31:27 -07:00
changelog = "https://github.com/any1/neatvnc/releases/tag/v${version}";
2020-02-23 05:45:18 -08:00
license = licenses.isc;
platforms = platforms.linux;
maintainers = with maintainers; [ primeos ];
};
}