2016-07-24 20:45:04 +00:00
|
|
|
{ stdenv, fetchurl, libusb1, pkgconfig, ... }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "blink1-${version}";
|
2018-06-14 16:14:23 +00:00
|
|
|
version = "1.98a";
|
2016-07-24 20:45:04 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2018-05-28 12:59:57 +00:00
|
|
|
url = "https://github.com/todbot/blink1/archive/v${version}.tar.gz";
|
2018-06-14 16:14:23 +00:00
|
|
|
sha256 = "1waci6hccv5i50v5d3z7lx4h224fbkj66ywfynnsgn46w0jm6imv";
|
2016-07-24 20:45:04 +00:00
|
|
|
};
|
|
|
|
|
2017-09-05 21:26:13 +00:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
buildInputs = [ libusb1 ];
|
2016-07-24 20:45:04 +00:00
|
|
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|