mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-30 08:44:31 +00:00
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:
parent
b0015dc064
commit
9d66d3c7f8
@ -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; {
|
||||
|
Loading…
Reference in New Issue
Block a user