about summary refs log tree commit diff
path: root/nixpkgs/pkgs/by-name/lp/lprint/package.nix
blob: 26167ccb0d6c8083c32175f0abd40dc0756dccae (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
35
36
37
38
39
40
41
42
43
44
{ lib, stdenv, fetchFromGitHub
, pappl
, cups
, pkg-config
}:

stdenv.mkDerivation rec {
  pname = "lprint";
  version = "1.3.1";

  src = fetchFromGitHub {
    owner = "michaelrsweet";
    repo = pname;
    rev = "v${version}";
    sha256 = "sha256-1OOLGQ8S4oRNSJanX/AzJ+g5F+jYnE/+o+ie5ucY22U=";
  };

  outputs = [ "out" "dev" ];

  nativeBuildInputs = [
    pkg-config
  ];

  buildInputs = [
    pappl
    cups
  ];

  doInstallCheck = true;
  installCheckPhase = ''
    $out/bin/lprint --help
  '';

  enableParallelBuilding = true;

  meta = with lib; {
    description = "LPrint implements printing for a variety of common label and receipt printers connected via network or USB.";
    mainProgram = "lprint";
    homepage = "https://github.com/michaelrsweet/lprint";
    license = licenses.asl20;
    platforms = platforms.linux;
    maintainers = with maintainers; [ ChlorideCull ];
  };
}