diff options
author | Guillaume Girol <symphorien@users.noreply.github.com> | 2024-03-13 21:22:11 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-13 21:22:11 +0100 |
commit | b5b4888caeb87ddc2d45bf82205bdc8800a06229 (patch) | |
tree | 0d90d1d4ecf96475935d9439f03b82dfc281e468 /pkgs/by-name | |
parent | cccdbc198b9abb2148d41f8005372eb3387b1c7c (diff) | |
parent | 4645daeec4fc8bf11e132f848a05dcd6c06b5b0b (diff) | |
download | nixlib-b5b4888caeb87ddc2d45bf82205bdc8800a06229.tar nixlib-b5b4888caeb87ddc2d45bf82205bdc8800a06229.tar.gz nixlib-b5b4888caeb87ddc2d45bf82205bdc8800a06229.tar.bz2 nixlib-b5b4888caeb87ddc2d45bf82205bdc8800a06229.tar.lz nixlib-b5b4888caeb87ddc2d45bf82205bdc8800a06229.tar.xz nixlib-b5b4888caeb87ddc2d45bf82205bdc8800a06229.tar.zst nixlib-b5b4888caeb87ddc2d45bf82205bdc8800a06229.zip |
Merge pull request #295023 from ChlorideCull/lprint-2
Add lprint, update pappl
Diffstat (limited to 'pkgs/by-name')
-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 000000000000..4d597df1d481 --- /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 ]; + }; +} |