summary refs log tree commit diff
path: root/pkgs/misc/ptouch-print/default.nix
diff options
context:
space:
mode:
authorSCOTT-HAMILTON <sgn.hamilton+github@protonmail.com>2020-10-30 14:00:15 +0100
committerSCOTT-HAMILTON <sgn.hamilton+github@protonmail.com>2020-11-27 20:20:50 +0100
commitbc503a2de179a720ecb072751b663af52aa8541d (patch)
tree5f32661d78da70ea67575cc57149e296dead7e01 /pkgs/misc/ptouch-print/default.nix
parentd420c85a5593866939e5fe72ee9396bbf271bc92 (diff)
ptouch-print: init at 1.4.3
Diffstat (limited to 'pkgs/misc/ptouch-print/default.nix')
-rw-r--r--pkgs/misc/ptouch-print/default.nix34
1 files changed, 34 insertions, 0 deletions
diff --git a/pkgs/misc/ptouch-print/default.nix b/pkgs/misc/ptouch-print/default.nix
new file mode 100644
index 0000000000000..ac15ec6330973
--- /dev/null
+++ b/pkgs/misc/ptouch-print/default.nix
@@ -0,0 +1,34 @@
+{ stdenv
+, fetchgit
+, autoreconfHook
+, gd
+, libusb1
+}:
+
+stdenv.mkDerivation rec {
+  pname = "ptouch-print";
+  version = "1.4.3";
+
+  src = fetchgit {
+    url = "https://mockmoon-cybernetics.ch/cgi/cgit/linux/ptouch-print.git";
+    rev = "v${version}";
+    sha256 = "0i57asg2hj1nfwy5lcb0vhrpvb9dqfhf81vh4i929h1kiqhlw2hx";
+  };
+
+  nativeBuildInputs = [
+    autoreconfHook
+  ];
+
+  buildInputs = [
+    gd
+    libusb1
+  ];
+
+  meta = with stdenv.lib; {
+    description = "Command line tool to print labels on Brother P-Touch printers on Linux";
+    license = licenses.gpl3Plus;
+    homepage = "https://mockmoon-cybernetics.ch/computer/p-touch2430pc/";
+    maintainers = with maintainers; [ shamilton ];
+    platforms = platforms.linux;
+  };
+}