mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-14 17:53:37 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
74 lines
1.3 KiB
Nix
74 lines
1.3 KiB
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, meson
|
|
, ninja
|
|
, pkg-config
|
|
, aml
|
|
, ffmpeg
|
|
, gnutls
|
|
, libjpeg_turbo
|
|
, mesa
|
|
, pixman
|
|
, zlib
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "neatvnc";
|
|
version = "0.8.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "any1";
|
|
repo = "neatvnc";
|
|
rev = "v${version}";
|
|
hash = "sha256-2gPDcFcu1kGIDubguL38Z0K+k7WGFf7DX8yZteedcNg=";
|
|
};
|
|
|
|
patches = [
|
|
# Fix build with latest ffmpeg
|
|
# Backport of https://github.com/any1/neatvnc/commit/7e008743bf872598b4fcdb2a821041064ce5dd01
|
|
# FIXME: remove in next update
|
|
./fix-ffmpeg.patch
|
|
];
|
|
|
|
strictDeps = true;
|
|
|
|
nativeBuildInputs = [
|
|
meson
|
|
ninja
|
|
pkg-config
|
|
];
|
|
|
|
buildInputs = [
|
|
aml
|
|
ffmpeg
|
|
gnutls
|
|
libjpeg_turbo
|
|
mesa
|
|
pixman
|
|
zlib
|
|
];
|
|
|
|
mesonFlags = [
|
|
(lib.mesonBool "tests" true)
|
|
];
|
|
|
|
doCheck = true;
|
|
|
|
meta = with lib; {
|
|
description = "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
|
|
'';
|
|
homepage = "https://github.com/any1/neatvnc";
|
|
changelog = "https://github.com/any1/neatvnc/releases/tag/v${version}";
|
|
license = licenses.isc;
|
|
platforms = platforms.linux;
|
|
maintainers = with maintainers; [ nickcao ];
|
|
};
|
|
}
|