nixpkgs/pkgs/development/libraries/lirc/default.nix

41 lines
973 B
Nix
Raw Normal View History

2015-02-28 16:49:58 +00:00
{ stdenv, fetchurl, alsaLib, bash, help2man, pkgconfig, x11, python3 }:
stdenv.mkDerivation rec {
2015-02-28 16:49:58 +00:00
name = "lirc-0.9.2a";
src = fetchurl {
url = "mirror://sourceforge/lirc/${name}.tar.bz2";
2015-02-28 16:49:58 +00:00
sha256 = "011nwpxm5d12rsapljg3pjf9pgb0j8ngmc3zg69q4kv61hkx2zim";
};
patchPhase = ''
sed -e 's|^#!/usr/bin/env python3$|#!${python3}/bin/python3|g' -i tools/*.py
'';
preBuild = "patchShebangs .";
2015-02-28 16:49:58 +00:00
buildInputs = [ alsaLib help2man pkgconfig x11 python3 ];
configureFlags = [
"--with-driver=devinput"
2015-04-25 23:07:34 +01:00
"--sysconfdir=/etc"
"--localstatedir=/var"
"--enable-sandboxed"
];
makeFlags = [ "m4dir=$(out)/m4" ];
2015-04-26 04:20:59 +01:00
installFlags = [
"sysconfdir=\${out}/etc"
"localstatedir=\${TMPDIR}"
];
2015-04-25 23:07:34 +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;
maintainers = with maintainers; [ pSub ];
};
}