2022-11-11 22:11:42 +00:00
|
|
|
{ lib
|
|
|
|
, qt5
|
|
|
|
, qtbase
|
|
|
|
, qttools
|
|
|
|
, qtwebsockets
|
|
|
|
, qtmultimedia
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
|
|
|
|
2023-07-12 15:22:45 +00:00
|
|
|
qt5.mkDerivation {
|
2022-11-11 22:11:42 +00:00
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|