Files
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

44 lines
1.1 KiB
Nix

{
stdenv,
lib,
fetchurl,
dpkg,
}:
stdenv.mkDerivation rec {
pname = "mlxbf-bootimages";
version = "4.11.0-13611";
src = fetchurl {
url = "https://linux.mellanox.com/public/repo/bluefield/${version}/bootimages/prod/${pname}-signed_${version}_arm64.deb";
hash = "sha256-bZpZ6qnC3Q/BuOngS4ZoU6vjeekPjVom0KdDoJF5iko=";
};
nativeBuildInputs = [
dpkg
];
unpackCmd = "dpkg -x $curSrc src";
# Only install /lib. /usr only contains the licenses which are also available
# in /lib.
installPhase = ''
find lib -type f -exec install -D {} $out/{} \;
'';
meta = with lib; {
description = "BlueField boot images";
homepage = "https://github.com/Mellanox/bootimages";
# It is unclear if the bootimages themselves are Open Source software. They
# never explicitly say they are. They contain Open Source software licensed
# under bsd2, bsd2Patent, bsd3. However, it is probably safer to assume
# they are unfree. See https://github.com/Mellanox/bootimages/issues/3
license = licenses.unfree;
platforms = [ "aarch64-linux" ];
maintainers = with maintainers; [
nikstur
thillux
];
};
}