2016-07-24 21:45:04 +01:00
|
|
|
{ stdenv, fetchurl, libusb1, pkgconfig, ... }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "blink1";
|
2018-06-14 17:14:23 +01:00
|
|
|
version = "1.98a";
|
2016-07-24 21:45:04 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2018-05-28 13:59:57 +01:00
|
|
|
url = "https://github.com/todbot/blink1/archive/v${version}.tar.gz";
|
2018-06-14 17:14:23 +01:00
|
|
|
sha256 = "1waci6hccv5i50v5d3z7lx4h224fbkj66ywfynnsgn46w0jm6imv";
|
2016-07-24 21:45:04 +01:00
|
|
|
};
|
|
|
|
|
2017-09-05 22:26:13 +01:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
buildInputs = [ libusb1 ];
|
2016-07-24 21:45:04 +01:00
|
|
|
|
|
|
|
configurePhase = ''
|
|
|
|
cd commandline
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
PREFIX=$out make install
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Command line client for the blink(1) notification light";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://blink1.thingm.com/";
|
2016-07-24 21:45:04 +01:00
|
|
|
license = stdenv.lib.licenses.cc-by-sa-30;
|
|
|
|
maintainers = [ stdenv.lib.maintainers.cransom ];
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
};
|
|
|
|
}
|