lprint: Add enableExperimental parameter and adopt (#317213)

This commit is contained in:
Yohann Boniface 2025-08-14 07:53:25 +02:00 committed by GitHub
commit 9093c2da36
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -5,6 +5,8 @@
pappl, pappl,
cups, cups,
pkg-config, 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 { stdenv.mkDerivation rec {
@ -32,6 +34,8 @@ stdenv.mkDerivation rec {
cups cups
]; ];
configureFlags = lib.optional enableExperimental "--enable-experimental";
doInstallCheck = true; doInstallCheck = true;
installCheckPhase = '' installCheckPhase = ''
$out/bin/lprint --help $out/bin/lprint --help
@ -45,6 +49,6 @@ stdenv.mkDerivation rec {
homepage = "https://github.com/michaelrsweet/lprint"; homepage = "https://github.com/michaelrsweet/lprint";
license = licenses.asl20; license = licenses.asl20;
platforms = platforms.linux; platforms = platforms.linux;
maintainers = [ ]; maintainers = with lib.maintainers; [ pandapip1 ];
}; };
} }