Files
nixpkgs/pkgs/by-name/lp/lprint/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

55 lines
1.1 KiB
Nix

{
lib,
stdenv,
fetchFromGitHub,
pappl,
cups,
pkg-config,
# Enables support for untested printers. It makes sense to default this to true, as it's unlikely to result in any issues
enableExperimental ? true,
}:
stdenv.mkDerivation rec {
pname = "lprint";
version = "1.3.1";
src = fetchFromGitHub {
owner = "michaelrsweet";
repo = "lprint";
rev = "v${version}";
hash = "sha256-1OOLGQ8S4oRNSJanX/AzJ+g5F+jYnE/+o+ie5ucY22U=";
};
outputs = [
"out"
"dev"
];
nativeBuildInputs = [
pkg-config
];
buildInputs = [
pappl
cups
];
configureFlags = lib.optional enableExperimental "--enable-experimental";
doInstallCheck = true;
installCheckPhase = ''
$out/bin/lprint --help
'';
enableParallelBuilding = true;
meta = with lib; {
description = "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 lib.maintainers; [ pandapip1 ];
};
}