diff --git a/pkgs/development/libraries/lirc/default.nix b/pkgs/development/libraries/lirc/default.nix index 278eb8e9e523..d84e0219294d 100644 --- a/pkgs/development/libraries/lirc/default.nix +++ b/pkgs/development/libraries/lirc/default.nix @@ -1,23 +1,20 @@ -{ stdenv, fetchurl, alsaLib, bash, help2man }: +{ stdenv, fetchurl, alsaLib, bash, help2man, pkgconfig, x11, python3 }: stdenv.mkDerivation rec { - name = "lirc-0.9.1a"; + name = "lirc-0.9.2a"; src = fetchurl { url = "mirror://sourceforge/lirc/${name}.tar.bz2"; - sha256 = "191vhgsds221rzpzjibj005pfr182hq65hniqfd0qqsl5h1zwq8r"; + sha256 = "011nwpxm5d12rsapljg3pjf9pgb0j8ngmc3zg69q4kv61hkx2zim"; }; - patches = [ - (fetchurl { - url = "https://projects.archlinux.org/svntogit/packages.git/plain/trunk/lirc-0.9.1a-fix-segfaults.patch?h=packages/lirc"; - sha256 = "00ainq7y8yh2r447968jid06cqfb1xirv24xxrkl0gvakrrv9gnh"; - }) - ]; + patchPhase = '' + sed -e 's|^#!/usr/bin/env python3$|#!${python3}/bin/python3|g' -i tools/*.py + ''; preBuild = "patchShebangs ."; - buildInputs = [ alsaLib help2man ]; + buildInputs = [ alsaLib help2man pkgconfig x11 python3 ]; configureFlags = [ "--with-driver=devinput"