3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/servers/monitoring/lcdproc/default.nix
Jonathan Ringer 9bb3fccb5b treewide: pkgs.pkgconfig -> pkgs.pkg-config, move pkgconfig to alias.nix
continuation of #109595

pkgconfig was aliased in 2018, however, it remained in
all-packages.nix due to its wide usage. This cleans
up the remaining references to pkgs.pkgsconfig and
moves the entry to aliases.nix.

python3Packages.pkgconfig remained unchanged because
it's the canonical name of the upstream package
on pypi.
2021-01-19 01:16:25 -08:00

50 lines
1.4 KiB
Nix

{ lib, stdenv, fetchFromGitHub, autoreconfHook, makeWrapper, pkg-config
, doxygen, freetype, libX11, libftdi, libusb-compat-0_1, libusb1, ncurses, perl }:
stdenv.mkDerivation rec {
pname = "lcdproc";
version = "0.5.9";
src = fetchFromGitHub {
owner = "lcdproc";
repo = "lcdproc";
rev = "v${version}";
sha256 = "1r885zv1gsh88j43x6fvzbdgfkh712a227d369h4fdcbnnfd0kpm";
};
patches = [
./hardcode_mtab.patch
];
configureFlags = [
"--enable-lcdproc-menus"
"--enable-drivers=all"
"--with-pidfile-dir=/run"
];
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
enableParallelBuilding = false;
postFixup = ''
for f in $out/bin/*.pl ; do
substituteInPlace $f \
--replace /usr/bin/perl ${lib.getBin perl}/bin/perl
done
# NixOS will not use this file anyway but at least we can now execute LCDd
substituteInPlace $out/etc/LCDd.conf \
--replace server/drivers/ $out/lib/lcdproc/
'';
meta = with lib; {
description = "Client/server suite for controlling a wide variety of LCD devices";
homepage = "http://lcdproc.org/";
license = licenses.gpl2;
maintainers = with maintainers; [ peterhoeg ];
platforms = platforms.unix;
};
}