Merge pull request #261376 from secufoe/rshim-user-space-bfb-install

rshim-user-space: add bfb-install

authored by nikstur and committed by GitHub a19e8471 f879f6a4

+12 -1
+12 -1
pkgs/tools/misc/rshim-user-space/default.nix
··· 3 3 , fetchFromGitHub 4 4 , autoconf 5 5 , automake 6 + , makeBinaryWrapper 6 7 , pkg-config 7 8 , pciutils 8 9 , libusb1 9 10 , fuse 11 + , busybox 12 + , pv 13 + , withBfbInstall ? true 10 14 }: 11 15 12 16 stdenv.mkDerivation rec { ··· 24 28 autoconf 25 29 automake 26 30 pkg-config 27 - ]; 31 + ] ++ lib.optionals withBfbInstall [ makeBinaryWrapper ]; 28 32 29 33 buildInputs = [ 30 34 pciutils ··· 39 43 installPhase = '' 40 44 mkdir -p "$out"/bin 41 45 cp -a src/rshim "$out"/bin/ 46 + '' + lib.optionalString withBfbInstall '' 47 + cp -a scripts/bfb-install "$out"/bin/ 48 + ''; 49 + 50 + postFixup = lib.optionalString withBfbInstall '' 51 + wrapProgram $out/bin/bfb-install \ 52 + --set PATH ${lib.makeBinPath [ busybox pv ]} 42 53 ''; 43 54 44 55 meta = with lib; {