python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / applications / video / flirc / default.nix
blob58de5ceab099a15e854901077feb1c5a2ee66671
1 { lib
2 , mkDerivation
3 , fetchurl
4 , autoPatchelfHook
5 , hidapi
6 , readline
7 , qtsvg
8 , qtxmlpatterns
9 }:
11 mkDerivation rec {
12   pname = "flirc";
13   version = "3.24.3";
15   src = fetchurl {
16     url = "https://web.archive.org/web/20211021211803/http://apt.flirc.tv/arch/x86_64/flirc.latest.x86_64.tar.gz";
17     sha256 = "0p4pp7j70lbw6m25lmjg6ibc67r6jcy7qs3kki9f86ji1jvrxpga";
18   };
20   nativeBuildInputs = [ autoPatchelfHook ];
21   buildInputs = [
22     hidapi
23     readline
24     qtsvg
25     qtxmlpatterns
26   ];
28   dontConfigure = true;
29   dontBuild = true;
31   # udev rules don't appear in the official package
32   # https://flirc.gitbooks.io/flirc-instructions/content/linux.html
33   installPhase = ''
34     install -D -t $out/bin/ Flirc flirc_util
35     install -D ${./99-flirc.rules} $out/lib/udev/rules.d/99-flirc.rules
36   '';
38   meta = with lib; {
39     homepage = "https://flirc.tv/more/flirc-usb";
40     description = "Use any Remote with your Media Center";
41     maintainers = with maintainers; [ aanderse ];
42     sourceProvenance = with sourceTypes; [ binaryNativeCode ];
43     license = licenses.unfree;
44     platforms = [ "x86_64-linux" ];
45   };