1 { lib, stdenv, fetchurl, pkg-config, libusb1 }:
3 stdenv.mkDerivation rec {
8 url = "mirror://sourceforge/${pname}/${pname}-${version}.tar.gz";
9 sha256 = "sha256-J0cEaC5v4naO4GGUzdfV55kB7KzA+q+v64i5y5Xbp9Q=";
12 nativeBuildInputs = [ pkg-config ];
17 outputs = [ "out" "dev" "doc" ];
20 description = "A library for checking the ink level of your printer";
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.
30 homepage = "https://libinklevel.sourceforge.net/";
31 license = licenses.gpl2;
32 platforms = platforms.linux ++ platforms.freebsd;
33 maintainers = with maintainers; [ samb96 ];