summary refs log tree commit diff
path: root/pkgs/tools/misc/blink1-tool/default.nix
blob: 4248dd6bd93c07b6379f84ed17c4cc3e6569fe91 (plain) (blame)
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
{ stdenv, fetchurl, libusb1, pkgconfig, ... }:

stdenv.mkDerivation rec {
  name = "blink1-${version}";
  version = "1.98a";

  src = fetchurl {
    url = "https://github.com/todbot/blink1/archive/v${version}.tar.gz";
    sha256 = "1waci6hccv5i50v5d3z7lx4h224fbkj66ywfynnsgn46w0jm6imv";
  };

  nativeBuildInputs = [ pkgconfig ];
  buildInputs = [ libusb1 ];

  configurePhase = ''
    cd commandline
  '';

  installPhase = ''
    PREFIX=$out make install
  '';

  meta = {
    description = "Command line client for the blink(1) notification light";
    homepage = https://blink1.thingm.com/;
    license = stdenv.lib.licenses.cc-by-sa-30;
    maintainers = [ stdenv.lib.maintainers.cransom ];
    platforms = stdenv.lib.platforms.linux;
  };
}