1{
2 stdenv,
3 fetchFromGitHub,
4 lib,
5}:
6
7stdenv.mkDerivation rec {
8 pname = "mlxbf-bootctl";
9 version = "unstable-2025-01-16";
10
11 src = fetchFromGitHub {
12 owner = "Mellanox";
13 repo = "mlxbf-bootctl";
14 rev = "278160ca8e08251cff5e7989e5a1010bd247a6ae";
15 hash = "sha256-qS35wCb8zvuF2Zs/5hPZkoZAapr7fwKQ/0ZOBPtrkRQ=";
16 };
17
18 installPhase = ''
19 install -D mlxbf-bootctl $out/bin/mlxbf-bootctl
20 '';
21
22 meta = {
23 description = "Control BlueField boot partitions";
24 homepage = "https://github.com/Mellanox/mlxbf-bootctl";
25 license = lib.licenses.bsd2;
26 changelog = "https://github.com/Mellanox/mlxbf-bootctl/releases/tag/${pname}-${version}";
27 # This package is supposed to only run on a BlueField. Thus aarch64-linux
28 # is the only relevant platform.
29 platforms = [ "aarch64-linux" ];
30 maintainers = with lib.maintainers; [
31 nikstur
32 thillux
33 ];
34 };
35}