nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 22.05 35 lines 1.2 kB view raw
1{ lib, stdenv, fetchurl, pkg-config, libusb1 }: 2 3stdenv.mkDerivation rec { 4 pname = "libinklevel"; 5 version = "0.9.3"; 6 7 src = fetchurl { 8 url = "mirror://sourceforge/${pname}/${pname}-${version}.tar.gz"; 9 sha256 = "1zwkicjznkzw81ax745inv4n29y20vq82w8249vizaal76739n19"; 10 }; 11 12 buildInputs = [ 13 pkg-config 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}