about summary refs log tree commit diff
path: root/pkgs/tools/misc
diff options
context:
space:
mode:
authorNiklas Förster <135814375+secufoe@users.noreply.github.com>2023-11-06 10:45:08 +0100
committerNiklas Förster <135814375+secufoe@users.noreply.github.com>2023-11-06 10:45:08 +0100
commit271b097d249399613fd9a3edfa6eb69e9db43023 (patch)
tree40465cff24e87e9977d91da4cb8fc30be6011cbf /pkgs/tools/misc
parent9d66d3c7f87e10c83d74b7f3d6b541360e04cb22 (diff)
rshim-user-space: make bfb-install optional
Diffstat (limited to 'pkgs/tools/misc')
-rw-r--r--pkgs/tools/misc/rshim-user-space/default.nix9
1 files changed, 4 insertions, 5 deletions
diff --git a/pkgs/tools/misc/rshim-user-space/default.nix b/pkgs/tools/misc/rshim-user-space/default.nix
index 4f1bc510dd806..25550f45c4faa 100644
--- a/pkgs/tools/misc/rshim-user-space/default.nix
+++ b/pkgs/tools/misc/rshim-user-space/default.nix
@@ -10,6 +10,7 @@
 , fuse
 , busybox
 , pv
+, withBfbInstall ? true
 }:
 
 stdenv.mkDerivation rec {
@@ -27,15 +28,12 @@ stdenv.mkDerivation rec {
     autoconf
     automake
     pkg-config
-    makeBinaryWrapper
-  ];
+  ] ++ lib.optionals withBfbInstall [ makeBinaryWrapper ];
 
   buildInputs = [
     pciutils
     libusb1
     fuse
-    busybox
-    pv
   ];
 
   strictDeps = true;
@@ -45,10 +43,11 @@ stdenv.mkDerivation rec {
   installPhase = ''
     mkdir -p "$out"/bin
     cp -a src/rshim "$out"/bin/
+  '' + lib.optionalString withBfbInstall ''
     cp -a scripts/bfb-install "$out"/bin/
   '';
 
-  postFixup = ''
+  postFixup = lib.optionalString withBfbInstall ''
     wrapProgram $out/bin/bfb-install \
       --set PATH ${lib.makeBinPath [ busybox pv ]}
   '';