Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5 pappl,
6 cups,
7 pkg-config,
8}:
9
10stdenv.mkDerivation rec {
11 pname = "lprint";
12 version = "1.3.1";
13
14 src = fetchFromGitHub {
15 owner = "michaelrsweet";
16 repo = "lprint";
17 rev = "v${version}";
18 hash = "sha256-1OOLGQ8S4oRNSJanX/AzJ+g5F+jYnE/+o+ie5ucY22U=";
19 };
20
21 outputs = [
22 "out"
23 "dev"
24 ];
25
26 nativeBuildInputs = [
27 pkg-config
28 ];
29
30 buildInputs = [
31 pappl
32 cups
33 ];
34
35 doInstallCheck = true;
36 installCheckPhase = ''
37 $out/bin/lprint --help
38 '';
39
40 enableParallelBuilding = true;
41
42 meta = with lib; {
43 description = "LPrint implements printing for a variety of common label and receipt printers connected via network or USB";
44 mainProgram = "lprint";
45 homepage = "https://github.com/michaelrsweet/lprint";
46 license = licenses.asl20;
47 platforms = platforms.linux;
48 maintainers = [ ];
49 };
50}