parent
dbf3a0e390
commit
c054f16ba7
@ -0,0 +1,31 @@ |
||||
{ stdenv, fetchFromGitHub, lib}: |
||||
|
||||
stdenv.mkDerivation rec { |
||||
pname = "libreelec-dvb-firmware"; |
||||
version = "1.4.2"; |
||||
|
||||
src = fetchFromGitHub { |
||||
repo = "dvb-firmware"; |
||||
owner = "LibreElec"; |
||||
rev = version; |
||||
sha256 = "1xnfl4gp6d81gpdp86v5xgcqiqz2nf1i43sb3a4i5jqs8kxcap2k"; |
||||
}; |
||||
|
||||
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; |
||||
}; |
||||
} |
@ -1,28 +0,0 @@ |
||||
{ lib, stdenv, fetchurl }: |
||||
|
||||
stdenv.mkDerivation rec { |
||||
pname = "openelec-dvb-firmware"; |
||||
version = "0.0.51"; |
||||
|
||||
src = fetchurl { |
||||
url = "https://github.com/OpenELEC/dvb-firmware/archive/${version}.tar.gz"; |
||||
sha256 = "cef3ce537d213e020af794cecf9de207e2882c375ceda39102eb6fa2580bad8d"; |
||||
}; |
||||
|
||||
installPhase = '' |
||||
runHook preInstall |
||||
|
||||
DESTDIR="$out" ./install |
||||
find $out \( -name 'README.*' -or -name 'LICEN[SC]E.*' -or -name '*.txt' \) | xargs rm |
||||
|
||||
runHook postInstall |
||||
''; |
||||
|
||||
meta = with lib; { |
||||
description = "DVB firmware from OpenELEC"; |
||||
homepage = "https://github.com/OpenELEC/dvb-firmware"; |
||||
license = licenses.unfreeRedistributableFirmware; |
||||
platforms = platforms.linux; |
||||
priority = 7; |
||||
}; |
||||
} |
Loading…
Reference in new issue