rshim-user-space: add bfb-install

Make bfb-install script available for convenient bootstream installation 
including log output and progress feedback.
This commit is contained in:
Niklas Förster 2023-10-16 12:08:18 +02:00
parent b0015dc064
commit 9d66d3c7f8

View File

@ -3,10 +3,13 @@
, fetchFromGitHub
, autoconf
, automake
, makeBinaryWrapper
, pkg-config
, pciutils
, libusb1
, fuse
, busybox
, pv
}:
stdenv.mkDerivation rec {
@ -24,12 +27,15 @@ stdenv.mkDerivation rec {
autoconf
automake
pkg-config
makeBinaryWrapper
];
buildInputs = [
pciutils
libusb1
fuse
busybox
pv
];
strictDeps = true;
@ -39,6 +45,12 @@ stdenv.mkDerivation rec {
installPhase = ''
mkdir -p "$out"/bin
cp -a src/rshim "$out"/bin/
cp -a scripts/bfb-install "$out"/bin/
'';
postFixup = ''
wrapProgram $out/bin/bfb-install \
--set PATH ${lib.makeBinPath [ busybox pv ]}
'';
meta = with lib; {