mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-02 15:41:48 +00:00
9c3af34e13
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/blink1/versions. These checks were done: - built on NixOS - /nix/store/8fdnsv83lcjc6fkg2n3yfvkyz1np0k20-blink1-1.98a/bin/blink1-tool passed the binary check. - 1 of 1 passed binary check by having a zero exit code. - 0 of 1 passed binary check by having the new version present in output. - directory tree listing: https://gist.github.com/0cc79e1e579091f9661ad91db1c61635 - du listing: https://gist.github.com/d2a0ee9aeb4e55c5008d64241727682d
31 lines
747 B
Nix
31 lines
747 B
Nix
{ stdenv, fetchurl, libusb1, pkgconfig, ... }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "blink1-${version}";
|
|
version = "1.98a";
|
|
|
|
src = fetchurl {
|
|
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;
|
|
};
|
|
}
|