summary refs log tree commit diff
path: root/pkgs/development/libraries/libinklevel
diff options
context:
space:
mode:
authorSam Bickley <samb96@gmail.com>2020-12-04 16:24:38 -0600
committerSam Bickley <samb96@gmail.com>2020-12-05 10:24:00 -0600
commit17c02c8c11295f03858a17c2e0a75ca8e519c729 (patch)
tree401428ca7728030bcfb97a375507ce057753436f /pkgs/development/libraries/libinklevel
parent705fb1e7a0d4ef894379bba89b3f8dd98ce8b357 (diff)
downloadnixpkgs-17c02c8c11295f03858a17c2e0a75ca8e519c729.tar
nixpkgs-17c02c8c11295f03858a17c2e0a75ca8e519c729.tar.gz
nixpkgs-17c02c8c11295f03858a17c2e0a75ca8e519c729.tar.bz2
nixpkgs-17c02c8c11295f03858a17c2e0a75ca8e519c729.tar.lz
nixpkgs-17c02c8c11295f03858a17c2e0a75ca8e519c729.tar.xz
nixpkgs-17c02c8c11295f03858a17c2e0a75ca8e519c729.tar.zst
nixpkgs-17c02c8c11295f03858a17c2e0a75ca8e519c729.zip
libinklevel: init at 0.9.3
Diffstat (limited to 'pkgs/development/libraries/libinklevel')
-rw-r--r--pkgs/development/libraries/libinklevel/default.nix35
1 files changed, 35 insertions, 0 deletions
diff --git a/pkgs/development/libraries/libinklevel/default.nix b/pkgs/development/libraries/libinklevel/default.nix
new file mode 100644
index 00000000000..90f6936d458
--- /dev/null
+++ b/pkgs/development/libraries/libinklevel/default.nix
@@ -0,0 +1,35 @@
+{ stdenv, fetchurl, pkg-config, libusb1 }:
+
+stdenv.mkDerivation rec {
+  pname = "libinklevel";
+  version = "0.9.3";
+
+  src = fetchurl {
+    url = "mirror://sourceforge/${pname}/${pname}-${version}.tar.gz";
+    sha256 = "1zwkicjznkzw81ax745inv4n29y20vq82w8249vizaal76739n19";
+  };
+
+  buildInputs = [
+    pkg-config
+    libusb1
+  ];
+
+  outputs = [ "out" "dev" "doc" ];
+
+  meta = with stdenv.lib; {
+    description = "A library for checking the ink level of your printer";
+    longDescription = ''
+      Libinklevel is a library for checking the ink level of your printer on a
+      system which runs Linux or FreeBSD. It supports printers attached via
+      USB. Currently printers of the following brands are supported: HP, Epson
+      and Canon. Canon BJNP network printers are supported too. This is not
+      official software from the printer manufacturers. The goal of this
+      project is to create a vendor independent API for retrieving the ink
+      level of a printer connected to a Linux or FreeBSD box.
+    '';
+    homepage = "http://libinklevel.sourceforge.net/";
+    license = licenses.gpl2;
+    platforms = platforms.linux ++ platforms.freebsd;
+    maintainers = with maintainers; [ samb96 ];
+  };
+}