lcdproc: do not show the GPL on every start (#118772)

* lcdproc: do not show the GPL on every start
This commit is contained in:
Peter Hoeg 2021-04-09 16:27:57 +08:00 committed by GitHub
parent 970b82e7d0
commit 1d406295a3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,5 +1,18 @@
{ lib, stdenv, fetchFromGitHub, autoreconfHook, makeWrapper, pkg-config
, doxygen, freetype, libX11, libftdi, libusb-compat-0_1, libusb1, ncurses, perl }:
{ lib
, stdenv
, fetchFromGitHub
, autoreconfHook
, makeWrapper
, pkg-config
, doxygen
, freetype
, libX11
, libftdi
, libusb-compat-0_1
, libusb1
, ncurses
, perl
}:
stdenv.mkDerivation rec {
pname = "lcdproc";
@ -16,6 +29,12 @@ stdenv.mkDerivation rec {
./hardcode_mtab.patch
];
# we don't need to see the GPL every time we launch lcdd in the foreground
postPatch = ''
substituteInPlace server/main.c \
--replace 'output_GPL_notice();' '// output_GPL_notice();'
'';
configureFlags = [
"--enable-lcdproc-menus"
"--enable-drivers=all"
@ -23,6 +42,7 @@ stdenv.mkDerivation rec {
];
buildInputs = [ freetype libX11 libftdi libusb-compat-0_1 libusb1 ncurses ];
nativeBuildInputs = [ autoreconfHook doxygen makeWrapper pkg-config ];
# In 0.5.9: gcc: error: libbignum.a: No such file or directory