summaryrefslogtreecommitdiffstats
path: root/pkgs/applications/video/hyperion-ng
diff options
context:
space:
mode:
authorAlias Gram <aliasgram@gmail.com>2022-04-16 19:50:44 +0200
committerehmry <ehmry@posteo.net>2022-04-29 09:22:21 -0500
commitb263bfb91cfee2a824059405aecc888a6a0759bd (patch)
tree997403360190d211042a09bc5a72d1a0d96f040d /pkgs/applications/video/hyperion-ng
parent188c2e7c8dafef872ca1dd2ac88dcb421e0e4ff1 (diff)
hyperion-ng: init at 2.0.12
Diffstat (limited to 'pkgs/applications/video/hyperion-ng')
-rw-r--r--pkgs/applications/video/hyperion-ng/default.nix50
1 files changed, 50 insertions, 0 deletions
diff --git a/pkgs/applications/video/hyperion-ng/default.nix b/pkgs/applications/video/hyperion-ng/default.nix
new file mode 100644
index 000000000000..9bee8715b98d
--- /dev/null
+++ b/pkgs/applications/video/hyperion-ng/default.nix
@@ -0,0 +1,50 @@
+{ avahi-compat, cmake, fetchFromGitHub, flatbuffers, hidapi, lib, libcec
+, libusb1, libX11, libxcb, libXrandr, mbedtls, mkDerivation, protobuf, python3
+, qtbase, qtserialport, qtsvg, qtx11extras, wrapQtAppsHook }:
+
+mkDerivation rec {
+ pname = "hyperion.ng";
+ version = "2.0.12";
+
+ src = fetchFromGitHub {
+ owner = "hyperion-project";
+ repo = pname;
+ rev = version;
+ sha256 = "sha256-J31QaWwGNhIpnZmWN9lZEI6fC0VheY5X8fGchQqtAlQ=";
+ };
+
+ buildInputs = [
+ avahi-compat
+ flatbuffers
+ hidapi
+ libcec
+ libusb1
+ libX11
+ libxcb
+ libXrandr
+ mbedtls
+ protobuf
+ python3
+ qtbase
+ qtserialport
+ qtsvg
+ qtx11extras
+ ];
+
+ nativeBuildInputs = [ cmake wrapQtAppsHook ];
+
+ cmakeFlags = [
+ "-DCMAKE_BUILD_TYPE=Release"
+ "-DUSE_SYSTEM_MBEDTLS_LIBS=ON"
+ "-DUSE_SYSTEM_FLATBUFFERS_LIBS=ON"
+ "-DUSE_SYSTEM_PROTO_LIBS=ON"
+ ];
+
+ meta = with lib; {
+ description = "Open Source Ambilight solution";
+ homepage = "https://github.com/hyperion-project/hyperion.ng";
+ license = licenses.mit;
+ maintainers = with maintainers; [ algram ];
+ platforms = platforms.unix;
+ };
+}