feat: add BLHeliSuite32
This commit is contained in:
parent
5b2336b0f3
commit
049b93b575
|
@ -14,5 +14,7 @@
|
||||||
betaflight-configurator
|
betaflight-configurator
|
||||||
inav-configurator
|
inav-configurator
|
||||||
inav-blackbox-tools
|
inav-blackbox-tools
|
||||||
|
|
||||||
|
(pkgs.callPackage ./package/blheli32.nix { })
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
28
home/util/package/blheli32.nix
Normal file
28
home/util/package/blheli32.nix
Normal file
|
@ -0,0 +1,28 @@
|
||||||
|
{ stdenvNoCC
|
||||||
|
, lib
|
||||||
|
, fetchzip
|
||||||
|
, buildFHSUserEnv }: let
|
||||||
|
name = "BLHeliSuite32";
|
||||||
|
pname = "blhelisuite32";
|
||||||
|
version = "32.10";
|
||||||
|
|
||||||
|
dist = fetchzip {
|
||||||
|
name = "${pname}-dist";
|
||||||
|
url = "https://github.com/bitdump/BLHeli/releases/download/Rev${version}/${name}xLinux64_1044.zip";
|
||||||
|
hash = "sha256-7BuB/Mn5W8oOKePindxiOwPqCo2M67JEBHzD/CiQWAc=";
|
||||||
|
|
||||||
|
postFetch = ''
|
||||||
|
# BLHeliSuite32 tries to write next to its binary
|
||||||
|
ln -s /tmp/${pname}_settings $out/Settings
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
in buildFHSUserEnv {
|
||||||
|
inherit pname;
|
||||||
|
targetPkgs = pkgs: (with pkgs; [
|
||||||
|
glib libGL curl
|
||||||
|
libgcc gtk3
|
||||||
|
zlib systemdLibs
|
||||||
|
]);
|
||||||
|
|
||||||
|
runScript = "sh -c 'mkdir -p /tmp/blhelisuite32_settings && exec ${dist}/${name}xl'";
|
||||||
|
}
|
Loading…
Reference in a new issue