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 , fetchFromGitHub 4 , autoconf 5 , automake 6 , pkg-config 7 , pciutils 8 , libusb1 9 , fuse 10 }: 11 12 stdenv.mkDerivation rec { ··· 24 autoconf 25 automake 26 pkg-config 27 - ]; 28 29 buildInputs = [ 30 pciutils ··· 39 installPhase = '' 40 mkdir -p "$out"/bin 41 cp -a src/rshim "$out"/bin/ 42 ''; 43 44 meta = with lib; {
··· 3 , fetchFromGitHub 4 , autoconf 5 , automake 6 + , makeBinaryWrapper 7 , pkg-config 8 , pciutils 9 , libusb1 10 , fuse 11 + , busybox 12 + , pv 13 + , withBfbInstall ? true 14 }: 15 16 stdenv.mkDerivation rec { ··· 28 autoconf 29 automake 30 pkg-config 31 + ] ++ lib.optionals withBfbInstall [ makeBinaryWrapper ]; 32 33 buildInputs = [ 34 pciutils ··· 43 installPhase = '' 44 mkdir -p "$out"/bin 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 ]} 53 ''; 54 55 meta = with lib; {