1{ lib, stdenv, fetchurl, pkg-config, libusb1 }:
2
3stdenv.mkDerivation rec {
4 pname = "libinklevel";
5 version = "0.9.4";
6
7 src = fetchurl {
8 url = "mirror://sourceforge/${pname}/${pname}-${version}.tar.gz";
9 sha256 = "sha256-J0cEaC5v4naO4GGUzdfV55kB7KzA+q+v64i5y5Xbp9Q=";
10 };
11
12 nativeBuildInputs = [ pkg-config ];
13 buildInputs = [
14 libusb1
15 ];
16
17 outputs = [ "out" "dev" "doc" ];
18
19 meta = with lib; {
20 description = "A library for checking the ink level of your printer";
21 longDescription = ''
22 Libinklevel is a library for checking the ink level of your printer on a
23 system which runs Linux or FreeBSD. It supports printers attached via
24 USB. Currently printers of the following brands are supported: HP, Epson
25 and Canon. Canon BJNP network printers are supported too. This is not
26 official software from the printer manufacturers. The goal of this
27 project is to create a vendor independent API for retrieving the ink
28 level of a printer connected to a Linux or FreeBSD box.
29 '';
30 homepage = "http://libinklevel.sourceforge.net/";
31 license = licenses.gpl2;
32 platforms = platforms.linux ++ platforms.freebsd;
33 maintainers = with maintainers; [ samb96 ];
34 };
35}