nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 54 lines 1.2 kB view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 pappl, 6 cups, 7 pkg-config, 8 # Enables support for untested printers. It makes sense to default this to true, as it's unlikely to result in any issues 9 enableExperimental ? true, 10}: 11 12stdenv.mkDerivation (finalAttrs: { 13 pname = "lprint"; 14 version = "1.3.1"; 15 16 src = fetchFromGitHub { 17 owner = "michaelrsweet"; 18 repo = "lprint"; 19 rev = "v${finalAttrs.version}"; 20 hash = "sha256-1OOLGQ8S4oRNSJanX/AzJ+g5F+jYnE/+o+ie5ucY22U="; 21 }; 22 23 outputs = [ 24 "out" 25 "dev" 26 ]; 27 28 nativeBuildInputs = [ 29 pkg-config 30 ]; 31 32 buildInputs = [ 33 pappl 34 cups 35 ]; 36 37 configureFlags = lib.optional enableExperimental "--enable-experimental"; 38 39 doInstallCheck = true; 40 installCheckPhase = '' 41 $out/bin/lprint --help 42 ''; 43 44 enableParallelBuilding = true; 45 46 meta = { 47 description = "Implements printing for a variety of common label and receipt printers connected via network or USB"; 48 mainProgram = "lprint"; 49 homepage = "https://github.com/michaelrsweet/lprint"; 50 license = lib.licenses.asl20; 51 platforms = lib.platforms.linux; 52 maintainers = with lib.maintainers; [ pandapip1 ]; 53 }; 54})