summaryrefslogtreecommitdiffstats
path: root/pkgs/by-name/r3/r3ctl/package.nix
blob: 79580d929c884e9aded9b514dfc444866395f7cd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
{
  stdenv,
  lib,
  qt5,
  fetchFromGitHub,
}:

stdenv.mkDerivation {
  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 = [
    qt5.qtbase
    qt5.qttools
    qt5.qtmultimedia
    qt5.qtwebsockets
  ];

  meta = {
    description = "Cmdline tool to control the r3 hackerspace lights";
    mainProgram = "r3ctl";
    homepage = "https://github.com/0xfeedc0de64/r3ctl";
    maintainers = with lib.maintainers; [ mkg20001 ];
    license = lib.licenses.gpl3Only;
    platforms = lib.platforms.linux;
  };
}