2015-02-28 17:49:58 +01:00
|
|
|
{ stdenv, fetchurl, alsaLib, bash, help2man, pkgconfig, x11, python3 }:
|
2012-01-09 11:25:49 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2015-02-28 17:49:58 +01:00
|
|
|
name = "lirc-0.9.2a";
|
2012-01-09 11:25:49 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/lirc/${name}.tar.bz2";
|
2015-02-28 17:49:58 +01:00
|
|
|
sha256 = "011nwpxm5d12rsapljg3pjf9pgb0j8ngmc3zg69q4kv61hkx2zim";
|
2012-01-09 11:25:49 +01:00
|
|
|
};
|
|
|
|
|
2015-02-28 20:30:04 +01:00
|
|
|
patchPhase = ''
|
|
|
|
sed -e 's|^#!/usr/bin/env python3$|#!${python3}/bin/python3|g' -i tools/*.py
|
|
|
|
'';
|
|
|
|
|
2014-08-31 00:32:37 +02:00
|
|
|
preBuild = "patchShebangs .";
|
|
|
|
|
2015-02-28 17:49:58 +01:00
|
|
|
buildInputs = [ alsaLib help2man pkgconfig x11 python3 ];
|
2012-01-09 11:25:49 +01:00
|
|
|
|
2013-01-21 19:06:22 +01:00
|
|
|
configureFlags = [
|
|
|
|
"--with-driver=devinput"
|
2015-04-26 00:07:34 +02:00
|
|
|
"--sysconfdir=/etc"
|
|
|
|
"--localstatedir=/var"
|
2013-01-21 19:06:22 +01:00
|
|
|
"--enable-sandboxed"
|
|
|
|
];
|
2014-08-31 00:32:37 +02:00
|
|
|
|
|
|
|
makeFlags = [ "m4dir=$(out)/m4" ];
|
|
|
|
|
2015-04-26 05:20:59 +02:00
|
|
|
installFlags = [
|
|
|
|
"sysconfdir=\${out}/etc"
|
|
|
|
"localstatedir=\${TMPDIR}"
|
|
|
|
];
|
2015-04-26 00:07:34 +02:00
|
|
|
|
2014-08-31 00:32:37 +02:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Allows to receive and send infrared signals";
|
|
|
|
homepage = http://www.lirc.org/;
|
|
|
|
license = licenses.gpl2;
|
2014-08-31 02:17:19 +02:00
|
|
|
platforms = platforms.linux;
|
2014-08-31 00:32:37 +02:00
|
|
|
maintainers = with maintainers; [ pSub ];
|
|
|
|
};
|
2012-01-09 11:25:49 +01:00
|
|
|
}
|