bt-fw-converter: init at 2017-02-19
This commit is contained in:
parent
31ad4e1657
commit
7845163d6a
35
pkgs/os-specific/linux/firmware/bt-fw-converter/default.nix
Normal file
35
pkgs/os-specific/linux/firmware/bt-fw-converter/default.nix
Normal file
@ -0,0 +1,35 @@
|
||||
{ stdenv, fetchurl, makeWrapper, perl, perlPackages, bluez }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "bt-fw-converter-${version}";
|
||||
version = "2017-02-19";
|
||||
rev = "2d8b34402df01c6f7f4b8622de9e8b82fadf4153";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://raw.githubusercontent.com/winterheart/broadcom-bt-firmware/${rev}/tools/bt-fw-converter.pl";
|
||||
sha256 = "c259b414a4a273c89a0fa7159b3ef73d1ea62b6de91c3a7c2fcc832868e39f4b";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
|
||||
buildInputs = [ perl perlPackages.RegexpGrammars bluez ];
|
||||
|
||||
unpackCmd = ''
|
||||
mkdir -p ${name}
|
||||
cp $src ${name}/bt-fw-converter.pl
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
install -D -m755 bt-fw-converter.pl $out/bin/bt-fw-converter
|
||||
substituteInPlace $out/bin/bt-fw-converter --replace /usr/bin/hex2hcd ${bluez}/bin/hex2hcd
|
||||
wrapProgram $out/bin/bt-fw-converter --set PERL5LIB $PERL5LIB
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = https://github.com/winterheart/broadcom-bt-firmware/;
|
||||
description = "A tool that converts hex to hcd based on inf file";
|
||||
license = licenses.mit;
|
||||
platforms = platforms.linux;
|
||||
maintainers = with maintainers; [ zraexy ];
|
||||
};
|
||||
}
|
@ -11352,6 +11352,8 @@ with pkgs;
|
||||
b43Firmware_6_30_163_46 = callPackage ../os-specific/linux/firmware/b43-firmware/6.30.163.46.nix { };
|
||||
|
||||
b43FirmwareCutter = callPackage ../os-specific/linux/firmware/b43-firmware-cutter { };
|
||||
|
||||
bt-fw-converter = callPackage ../os-specific/linux/firmware/bt-fw-converter { };
|
||||
|
||||
batctl = callPackage ../os-specific/linux/batman-adv/batctl.nix { };
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user