2021-01-17 04:51:22 +01:00
|
|
|
{ lib, stdenv, fetchurl, libusb1, pkg-config, ... }:
|
2016-07-24 22:45:04 +02:00
|
|
|
|
|
|
|
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
|
|
|
};
|
|
|
|
|
2021-01-17 04:51:22 +01:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2017-09-05 23:26:13 +02:00
|
|
|
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";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://blink1.thingm.com/";
|
2021-01-15 10:19:50 +01:00
|
|
|
license = lib.licenses.cc-by-sa-30;
|
|
|
|
maintainers = [ lib.maintainers.cransom ];
|
|
|
|
platforms = lib.platforms.linux;
|
2016-07-24 22:45:04 +02:00
|
|
|
};
|
|
|
|
}
|