Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 51 lines 915 B view raw
1{ 2 stdenv, 3 lib, 4 qt5, 5 qtbase, 6 qttools, 7 qtwebsockets, 8 qtmultimedia, 9 fetchFromGitHub, 10}: 11 12stdenv.mkDerivation { 13 pname = "r3ctl"; 14 version = "a82cb5b3123224e706835407f21acea9dc7ab0f0"; 15 16 src = fetchFromGitHub { 17 owner = "0xfeedc0de64"; 18 repo = "r3ctl"; 19 rev = "a82cb5b3123224e706835407f21acea9dc7ab0f0"; 20 sha256 = "5/L8jvEDJGJzsuAxPrctSDS3d8lbFX/+f52OVyGQ/RY="; 21 }; 22 23 buildPhase = '' 24 qmake . 25 make 26 ''; 27 28 postInstall = '' 29 mv bin $out 30 ''; 31 32 nativeBuildInputs = [ 33 qt5.wrapQtAppsHook 34 ]; 35 36 buildInputs = [ 37 qtbase 38 qttools 39 qtmultimedia 40 qtwebsockets 41 ]; 42 43 meta = with lib; { 44 description = "Cmdline tool to control the r3 hackerspace lights"; 45 mainProgram = "r3ctl"; 46 homepage = "https://github.com/0xfeedc0de64/r3ctl"; 47 maintainers = with maintainers; [ mkg20001 ]; 48 license = licenses.gpl3Only; 49 platforms = platforms.linux; 50 }; 51}