13 , withBfbInstall ? true
16 stdenv.mkDerivation rec {
17 pname = "rshim-user-space";
20 src = fetchFromGitHub {
23 rev = "rshim-${version}";
24 hash = "sha256-moU6XxBVSAZiiR/usFfxse2CHk6+003Jb9t62szk1fk=";
31 ] ++ lib.optionals withBfbInstall [ makeBinaryWrapper ];
40 patchShebangs scripts/bfb-install
45 preConfigure = "./bootstrap.sh";
49 cp -a src/rshim "$out"/bin/
50 '' + lib.optionalString withBfbInstall ''
51 cp -a scripts/bfb-install "$out"/bin/
54 postFixup = lib.optionalString withBfbInstall ''
55 wrapProgram $out/bin/bfb-install \
56 --set PATH ${lib.makeBinPath [ busybox pv ]}
60 description = "user-space rshim driver for the BlueField SoC";
62 The rshim driver provides a way to access the rshim resources on the
63 BlueField target from external host machine. The current version
64 implements device files for boot image push and virtual console access.
65 It also creates virtual network interface to connect to the BlueField
66 target and provides a way to access the internal rshim registers.
68 homepage = "https://github.com/Mellanox/rshim-user-space";
69 license = licenses.gpl2Only;
70 platforms = platforms.linux;
71 maintainers = with maintainers; [ nikstur ];