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