2022-08-21 13:32:41 +00:00
|
|
|
{ stdenvNoCC, fetchFromGitHub, lib}:
|
2021-08-22 07:53:02 +00:00
|
|
|
|
2022-08-21 13:32:41 +00:00
|
|
|
stdenvNoCC.mkDerivation rec {
|
2021-08-22 07:53:02 +00:00
|
|
|
pname = "libreelec-dvb-firmware";
|
2024-01-13 08:15:51 +00:00
|
|
|
version = "1.5.0";
|
2021-08-22 07:53:02 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
repo = "dvb-firmware";
|
|
|
|
owner = "LibreElec";
|
|
|
|
rev = version;
|
2024-01-13 08:15:51 +00:00
|
|
|
sha256 = "sha256-uEobcv5kqGxIOfSVVKH+iT7DHPF13OFiRF7c1GIUqtU=";
|
2021-08-22 07:53:02 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
|
|
|
|
mkdir -p $out/lib
|
|
|
|
cp -rv firmware $out/lib
|
|
|
|
find $out/lib \( -name 'README.*' -or -name 'LICEN[SC]E.*' -or -name '*.txt' \) | xargs rm
|
|
|
|
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "DVB firmware from LibreELEC";
|
|
|
|
homepage = "https://github.com/LibreELEC/dvb-firmware";
|
|
|
|
license = licenses.unfreeRedistributableFirmware;
|
|
|
|
maintainers = with maintainers; [ kittywitch ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|