nixpkgs/pkgs/os-specific/linux/firmware/openelec-dvb-firmware/default.nix
volth 46420bbaa3 treewide: name -> pname (easy cases) (#66585)
treewide replacement of

stdenv.mkDerivation rec {
  name = "*-${version}";
  version = "*";

to pname
2019-08-15 13:41:18 +01:00

27 lines
731 B
Nix

{ 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";
};
phases = [ "unpackPhase" "installPhase" ];
installPhase = ''
DESTDIR="$out" ./install
find $out \( -name 'README.*' -or -name 'LICEN[SC]E.*' -or -name '*.txt' \) | xargs rm
'';
meta = with stdenv.lib; {
description = "DVB firmware from OpenELEC";
homepage = https://github.com/OpenELEC/dvb-firmware;
license = licenses.unfreeRedistributableFirmware;
platforms = platforms.linux;
priority = 7;
};
}