about summary refs log tree commit diff
path: root/nixpkgs/pkgs/misc/ptouch-print/default.nix
blob: f9889cfe4bef987aab2f204dba84e9772ff8b0f4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{ lib, 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 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;
  };
}