2021-01-23 12:26:19 +00:00
|
|
|
{ lib, stdenv
|
2018-07-02 17:52:22 +01:00
|
|
|
, python3Packages
|
|
|
|
, python3
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pkgsCross
|
|
|
|
, makeWrapper
|
|
|
|
} :
|
|
|
|
|
2019-08-13 22:52:01 +01:00
|
|
|
stdenv.mkDerivation {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "fusee-launcher";
|
2018-07-02 17:52:22 +01:00
|
|
|
version = "unstable-2018-07-14";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Cease-and-DeSwitch";
|
|
|
|
repo = "fusee-launcher";
|
|
|
|
rev = "265e8f3e1987751ec41db6f1946d132b296aba43";
|
|
|
|
sha256 = "1pqkgw5bk0xcz9x7pc1f0r0b9nsc8jnnvcs1315d8ml8mx23fshm";
|
|
|
|
};
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin $out/share
|
|
|
|
cp fusee-launcher.py $out/bin/fusee-launcher
|
|
|
|
cp intermezzo.bin $out/share/intermezzo.bin
|
|
|
|
|
|
|
|
# Wrap with path to intermezzo.bin relocator binary in /share
|
|
|
|
wrapProgram $out/bin/fusee-launcher \
|
|
|
|
--add-flags "--relocator $out/share/intermezzo.bin" \
|
|
|
|
--prefix PYTHONPATH : "$PYTHONPATH:$(toPythonPath $out)"
|
|
|
|
'';
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pkgsCross.arm-embedded.buildPackages.gcc makeWrapper python3Packages.wrapPython ];
|
|
|
|
buildInputs = [ python3 python3Packages.pyusb ];
|
|
|
|
pythonPath = with python3Packages; [ pyusb ];
|
|
|
|
|
2021-01-23 12:26:19 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/Cease-and-DeSwitch/fusee-launcher";
|
2018-07-02 17:52:22 +01:00
|
|
|
description = "Work-in-progress launcher for one of the Tegra X1 bootROM exploits";
|
|
|
|
license = licenses.gpl2;
|
|
|
|
maintainers = with maintainers; [ pneumaticat ];
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|