nixpkgs/pkgs/applications/video/flirc/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

54 lines
1.2 KiB
Nix
Raw Normal View History

2024-06-26 13:09:17 +01:00
{
lib,
stdenv,
fetchurl,
autoPatchelfHook,
wrapQtAppsHook,
hidapi,
readline,
qtsvg,
qtxmlpatterns,
2021-10-21 01:13:27 +01:00
}:
2024-01-10 17:09:08 +00:00
stdenv.mkDerivation {
2021-10-21 01:13:27 +01:00
pname = "flirc";
2024-06-26 13:09:17 +01:00
version = "3.27.15";
2021-10-21 01:13:27 +01:00
src = fetchurl {
2024-06-26 13:09:17 +01:00
url = "https://web.archive.org/web/20240626115121/http://apt.flirc.tv/arch/x86_64/flirc.latest.x86_64.tar.gz";
hash = "sha256-8bUsOsp5obJJdZU9QHfJnZKNAXJwi0nrHkSeDTE1Xa4=";
2021-10-21 01:13:27 +01:00
};
2024-01-10 17:09:08 +00:00
nativeBuildInputs = [
autoPatchelfHook
wrapQtAppsHook
];
2021-10-21 01:13:27 +01:00
buildInputs = [
hidapi
readline
qtsvg
qtxmlpatterns
];
dontConfigure = true;
dontBuild = true;
# udev rules don't appear in the official package
# https://flirc.gitbooks.io/flirc-instructions/content/linux.html
installPhase = ''
install -D -t $out/bin/ Flirc flirc_util
install -D ${./99-flirc.rules} $out/lib/udev/rules.d/99-flirc.rules
'';
meta = with lib; {
homepage = "https://flirc.tv/more/flirc-usb";
description = "Use any Remote with your Media Center";
maintainers = with maintainers; [ aanderse ];
sourceProvenance = with sourceTypes; [ binaryNativeCode ];
2021-10-21 01:13:27 +01:00
license = licenses.unfree;
2024-06-26 13:09:17 +01:00
mainProgram = "Flirc";
2021-10-21 01:13:27 +01:00
platforms = [ "x86_64-linux" ];
};
}