2017-11-25 21:23:57 +00:00
|
|
|
{ stdenv, fetchurl, alsaLib, bash, help2man, pkgconfig, xlibsWrapper
|
|
|
|
, python3Packages, libxslt, systemd, libusb, libftdi1 }:
|
2012-01-09 10:25:49 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2017-11-25 21:23:57 +00:00
|
|
|
name = "lirc-0.9.4d";
|
2012-01-09 10:25:49 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/lirc/${name}.tar.bz2";
|
2017-11-25 21:23:57 +00:00
|
|
|
sha256 = "1as19rnaz9vpp58kbk9q2lch51vf2fdi27bl19f8d6s8bg1ii3y6";
|
2012-01-09 10:25:49 +00:00
|
|
|
};
|
|
|
|
|
2017-11-25 21:23:57 +00:00
|
|
|
postPatch = ''
|
|
|
|
patchShebangs .
|
|
|
|
|
|
|
|
# fix overriding PYTHONPATH
|
|
|
|
sed -i 's,PYTHONPATH=,PYTHONPATH=$(PYTHONPATH):,' \
|
|
|
|
doc/Makefile.in
|
|
|
|
'';
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
# use empty inc file instead of a from linux kernel generated one
|
|
|
|
touch lib/lirc/input_map.inc
|
|
|
|
'';
|
2014-08-30 23:32:37 +01:00
|
|
|
|
2017-01-09 20:28:32 +00:00
|
|
|
nativeBuildInputs = [ pkgconfig help2man ];
|
|
|
|
|
2017-11-25 21:23:57 +00:00
|
|
|
buildInputs = [ alsaLib xlibsWrapper libxslt systemd libusb libftdi1 ]
|
|
|
|
++ (with python3Packages; [ python pyyaml ]);
|
2012-01-09 10:25:49 +00:00
|
|
|
|
2013-01-21 18:06:22 +00:00
|
|
|
configureFlags = [
|
2015-04-25 23:07:34 +01:00
|
|
|
"--sysconfdir=/etc"
|
|
|
|
"--localstatedir=/var"
|
2017-11-25 21:23:57 +00:00
|
|
|
"--with-systemdsystemunitdir=$(out)/lib/systemd/system"
|
2013-01-21 18:06:22 +00:00
|
|
|
];
|
2014-08-30 23:32:37 +01:00
|
|
|
|
2015-04-26 04:20:59 +01:00
|
|
|
installFlags = [
|
2017-11-25 21:23:57 +00:00
|
|
|
"sysconfdir=$out/etc"
|
|
|
|
"localstatedir=$TMPDIR"
|
2015-04-26 04:20:59 +01:00
|
|
|
];
|
2015-04-25 23:07:34 +01:00
|
|
|
|
2014-08-30 23:32:37 +01:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Allows to receive and send infrared signals";
|
|
|
|
homepage = http://www.lirc.org/;
|
|
|
|
license = licenses.gpl2;
|
2014-08-31 01:17:19 +01:00
|
|
|
platforms = platforms.linux;
|
2014-08-30 23:32:37 +01:00
|
|
|
maintainers = with maintainers; [ pSub ];
|
|
|
|
};
|
2012-01-09 10:25:49 +00:00
|
|
|
}
|