1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-24 22:50:49 +00:00
nixpkgs/pkgs/tools/misc/blink1-tool/default.nix

31 lines
747 B
Nix
Raw Normal View History

{ stdenv, fetchurl, libusb1, pkgconfig, ... }:
stdenv.mkDerivation rec {
name = "blink1-${version}";
version = "1.98a";
src = fetchurl {
2018-05-28 13:59:57 +01:00
url = "https://github.com/todbot/blink1/archive/v${version}.tar.gz";
sha256 = "1waci6hccv5i50v5d3z7lx4h224fbkj66ywfynnsgn46w0jm6imv";
};
nativeBuildInputs = [ pkgconfig ];
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/;
license = stdenv.lib.licenses.cc-by-sa-30;
maintainers = [ stdenv.lib.maintainers.cransom ];
platforms = stdenv.lib.platforms.linux;
};
}