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