From c0dab102f9203bd71497fd1d785e0db3bacdc222 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20Kr=C3=BCger?= Date: Fri, 11 Nov 2022 23:11:42 +0100 Subject: [PATCH] r3ctl: init at a82cb5b3123224e706835407f21acea9dc7ab0f0 --- pkgs/tools/misc/r3ctl/default.nix | 50 +++++++++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 52 insertions(+) create mode 100644 pkgs/tools/misc/r3ctl/default.nix diff --git a/pkgs/tools/misc/r3ctl/default.nix b/pkgs/tools/misc/r3ctl/default.nix new file mode 100644 index 000000000000..4821434e3e23 --- /dev/null +++ b/pkgs/tools/misc/r3ctl/default.nix @@ -0,0 +1,50 @@ +{ lib +, qt5 +, qtbase +, qtsvg +, qtx11extras +, qttools +, qtwebsockets +, qtmultimedia +, fetchFromGitHub +}: + +qt5.mkDerivation rec { + pname = "r3ctl"; + version = "a82cb5b3123224e706835407f21acea9dc7ab0f0"; + + src = fetchFromGitHub { + owner = "0xfeedc0de64"; + repo = "r3ctl"; + rev = "a82cb5b3123224e706835407f21acea9dc7ab0f0"; + sha256 = "5/L8jvEDJGJzsuAxPrctSDS3d8lbFX/+f52OVyGQ/RY="; + }; + + buildPhase = '' + qmake . + make + ''; + + postInstall = '' + mv bin $out + ''; + + nativeBuildInputs = [ + qt5.wrapQtAppsHook + ]; + + buildInputs = [ + qtbase + qttools + qtmultimedia + qtwebsockets + ]; + + meta = with lib; { + description = "A cmdline tool to control the r3 hackerspace lights"; + homepage = "https://github.com/0xfeedc0de64/r3ctl"; + maintainers = with maintainers; [ mkg20001 ]; + license = licenses.gpl3Only; + platforms = platforms.linux; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index d20b4d8e8d40..21c2ed5e37aa 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -560,6 +560,8 @@ with pkgs; riot-redis = callPackage ../development/tools/riot-redis { }; + r3ctl = qt5.callPackage ../tools/misc/r3ctl { }; + ptouch-print = callPackage ../misc/ptouch-print { }; demoit = callPackage ../servers/demoit { };