7 stdenv.mkDerivation rec {
8 pname = "mlxbf-bootimages";
9 version = "4.0.3-12704";
12 url = let mainVersion = builtins.elemAt (lib.splitString "-" version) 0; in
13 "https://linux.mellanox.com/public/repo/bluefield/${mainVersion}/bootimages/prod/${pname}-signed_${version}_arm64.deb";
14 hash = "sha256-e13XZhxf41240Qu+hh2a9+KIvZCL+8k5JyZrpJCHmI8=";
21 unpackCmd = "dpkg -x $curSrc src";
23 # Only install /lib. /usr only contains the licenses which are also available
26 find lib -type f -exec install -D {} $out/{} \;
30 description = "BlueField boot images";
31 homepage = "https://github.com/Mellanox/bootimages";
32 # It is unclear if the bootimages themselves are Open Source software. They
33 # never explicitly say they are. They contain Open Source software licensed
34 # under bsd2, bsd2Patent, bsd3. However, it is probably safer to assume
35 # they are unfree. See https://github.com/Mellanox/bootimages/issues/3
36 license = licenses.unfree;
37 platforms = [ "aarch64-linux" ];
38 maintainers = with maintainers; [ nikstur ];