forked from mirrors/nixpkgs
Merge pull request #94076 from primeos/wayvnc
wayvnc: 0.1.2 -> 0.2.0, neatvnc: 0.1.0 -> 0.2.0, aml: init at 0.1.0
This commit is contained in:
commit
a4082cca75
|
@ -1,20 +0,0 @@
|
|||
diff --git a/meson.build b/meson.build
|
||||
index cc6fa03..7c2b280 100644
|
||||
--- a/meson.build
|
||||
+++ b/meson.build
|
||||
@@ -24,6 +24,7 @@ add_project_arguments(c_args, language: 'c')
|
||||
cc = meson.get_compiler('c')
|
||||
|
||||
libm = cc.find_library('m', required: false)
|
||||
+librt = cc.find_library('rt', required: false)
|
||||
|
||||
pixman = dependency('pixman-1')
|
||||
libuv = dependency('libuv')
|
||||
@@ -65,6 +66,7 @@ sources = [
|
||||
|
||||
dependencies = [
|
||||
libm,
|
||||
+ librt,
|
||||
pixman,
|
||||
libuv,
|
||||
egl,
|
|
@ -1,27 +1,20 @@
|
|||
{ stdenv, fetchFromGitHub, meson, pkg-config, ninja
|
||||
, pixman, libuv, libGL, libxkbcommon, wayland, neatvnc, libdrm, libX11
|
||||
, pixman, libxkbcommon, wayland, neatvnc, libdrm, libX11, aml
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "wayvnc";
|
||||
version = "0.1.2";
|
||||
version = "0.2.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "any1";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "0aa12fkbwhzs0g2pqw1b27l33nn5dpbcvsf1z8h88kwsf9xdvb2r";
|
||||
sha256 = "1ddcf8hrxhx4rcwvbjwa5j3ygiwca2dpw26wl37pb0q0jr81wylv";
|
||||
};
|
||||
|
||||
patches = [ ./add-missing-librt.patch ];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace meson.build \
|
||||
--replace "version: '0.1.0'" "version: '${version}'"
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [ meson pkg-config ninja ];
|
||||
buildInputs = [ pixman libuv libGL libxkbcommon wayland neatvnc libdrm libX11 ];
|
||||
nativeBuildInputs = [ meson pkg-config ninja wayland ];
|
||||
buildInputs = [ pixman libxkbcommon wayland neatvnc libdrm libX11 aml ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "A VNC server for wlroots based Wayland compositors";
|
||||
|
|
23
pkgs/development/libraries/aml/default.nix
Normal file
23
pkgs/development/libraries/aml/default.nix
Normal file
|
@ -0,0 +1,23 @@
|
|||
{ stdenv, fetchFromGitHub, meson, pkg-config, ninja }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "aml";
|
||||
version = "0.1.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "any1";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "1pmiflkd9idnf6p0rnmccqqlj87k8crz9ixpx6rix671vnpk0xzi";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ meson pkg-config ninja ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Another main loop";
|
||||
inherit (src.meta) homepage;
|
||||
license = licenses.isc;
|
||||
platforms = platforms.unix;
|
||||
maintainers = with maintainers; [ primeos ];
|
||||
};
|
||||
}
|
|
@ -1,24 +1,20 @@
|
|||
{ stdenv, fetchFromGitHub, meson, pkg-config, ninja
|
||||
, pixman, libuv, gnutls, libdrm
|
||||
# libjpeg_turbo: Optional, for tight encoding (disabled because experimental)
|
||||
, enableCpuAcceleration ? false # Whether to use CPU extensions (e.g. AVX)
|
||||
, pixman, gnutls, libdrm, libjpeg_turbo, zlib, aml
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "neatvnc";
|
||||
version = "0.1.0";
|
||||
version = "0.2.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "any1";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "04wcpwxlcf0bczcs97j21346mn6finfj7xgc2dsrwrw9xq8qa7wc";
|
||||
sha256 = "036kzhbabbwc3gvsw8kqf6rs0gh8kgn6i0by9pxski38mi0qs1qs";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ meson pkg-config ninja ];
|
||||
buildInputs = [ pixman libuv gnutls libdrm ];
|
||||
|
||||
patches = stdenv.lib.optional (!enableCpuAcceleration) ./disable-cpu-acceleration.patch;
|
||||
buildInputs = [ pixman gnutls libdrm libjpeg_turbo zlib aml ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "A VNC server library";
|
||||
|
@ -30,6 +26,7 @@ stdenv.mkDerivation rec {
|
|||
- Interoperability with the Freedesktop.org ecosystem
|
||||
'';
|
||||
inherit (src.meta) homepage;
|
||||
changelog = "https://github.com/any1/neatvnc/releases/tag/v${version}";
|
||||
license = licenses.isc;
|
||||
platforms = platforms.linux;
|
||||
maintainers = with maintainers; [ primeos ];
|
||||
|
|
|
@ -1,17 +0,0 @@
|
|||
diff --git a/meson.build b/meson.build
|
||||
index 31dd8b8..8761087 100644
|
||||
--- a/meson.build
|
||||
+++ b/meson.build
|
||||
@@ -21,12 +21,6 @@ endif
|
||||
|
||||
cpu = host_machine.cpu_family()
|
||||
|
||||
-if cpu == 'x86_64'
|
||||
- c_args += '-mavx'
|
||||
-elif cpu == 'arm'
|
||||
- c_args += '-mfpu=neon'
|
||||
-endif
|
||||
-
|
||||
add_project_arguments(c_args, language: 'c')
|
||||
|
||||
cc = meson.get_compiler('c')
|
|
@ -11422,6 +11422,8 @@ in
|
|||
|
||||
amdvlk = callPackage ../development/libraries/amdvlk {};
|
||||
|
||||
aml = callPackage ../development/libraries/aml { };
|
||||
|
||||
amrnb = callPackage ../development/libraries/amrnb { };
|
||||
|
||||
amrwb = callPackage ../development/libraries/amrwb { };
|
||||
|
|
Loading…
Reference in a new issue