2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, libusb1, pkg-config, ... }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "blink1";
|
|
|
|
version = "1.98a";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/todbot/blink1/archive/v${version}.tar.gz";
|
|
|
|
sha256 = "1waci6hccv5i50v5d3z7lx4h224fbkj66ywfynnsgn46w0jm6imv";
|
|
|
|
};
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [ libusb1 ];
|
|
|
|
|
|
|
|
configurePhase = ''
|
|
|
|
cd commandline
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
PREFIX=$out make install
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Command line client for the blink(1) notification light";
|
|
|
|
homepage = "https://blink1.thingm.com/";
|
2021-01-15 22:18:51 +00:00
|
|
|
license = lib.licenses.cc-by-sa-30;
|
|
|
|
maintainers = [ lib.maintainers.cransom ];
|
|
|
|
platforms = lib.platforms.linux;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|