2016-07-24 21:45:04 +01:00
|
|
|
{ stdenv, fetchurl, libusb1, pkgconfig, ... }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "blink1-${version}";
|
|
|
|
version = "v1.98";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/todbot/blink1/archive/${version}.tar.gz";
|
|
|
|
sha256 = "05hbnp20cdvyyqf6jr01waz1ycis20qzsd8hn27snmn6qd48igrb";
|
|
|
|
};
|
|
|
|
|
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";
|
|
|
|
homepage = https://blink1.thingm.com/;
|
|
|
|
license = stdenv.lib.licenses.cc-by-sa-30;
|
|
|
|
maintainers = [ stdenv.lib.maintainers.cransom ];
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
};
|
|
|
|
}
|