diff options
author | Chloride Cull <chloride@devurandom.net> | 2024-03-11 15:18:25 +0100 |
---|---|---|
committer | Chloride Cull <chloride@devurandom.net> | 2024-03-11 16:58:02 +0100 |
commit | 4645daeec4fc8bf11e132f848a05dcd6c06b5b0b (patch) | |
tree | c488556311a795599af7ed24b65d8b320e866859 /pkgs/by-name/lp | |
parent | 5e173a2e5e42d9412c10e6e48fad29f2d260a766 (diff) |
lprint: init at 1.3.1
Diffstat (limited to 'pkgs/by-name/lp')
-rw-r--r-- | pkgs/by-name/lp/lprint/package.nix | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/pkgs/by-name/lp/lprint/package.nix b/pkgs/by-name/lp/lprint/package.nix new file mode 100644 index 0000000000000..4d597df1d4818 --- /dev/null +++ b/pkgs/by-name/lp/lprint/package.nix @@ -0,0 +1,43 @@ +{ 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."; + homepage = "https://github.com/michaelrsweet/lprint"; + license = licenses.asl20; + platforms = platforms.linux; + maintainers = with maintainers; [ ChlorideCull ]; + }; +} |