mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-24 05:00:19 +00:00

We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
32 lines
795 B
Nix
32 lines
795 B
Nix
{ stdenvNoCC, fetchFromGitHub, lib}:
|
|
|
|
stdenvNoCC.mkDerivation rec {
|
|
pname = "libreelec-dvb-firmware";
|
|
version = "1.5.0";
|
|
|
|
src = fetchFromGitHub {
|
|
repo = "dvb-firmware";
|
|
owner = "LibreElec";
|
|
rev = version;
|
|
sha256 = "sha256-uEobcv5kqGxIOfSVVKH+iT7DHPF13OFiRF7c1GIUqtU=";
|
|
};
|
|
|
|
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;
|
|
};
|
|
}
|