diff options
author | nikstur <nikstur@outlook.com> | 2023-05-16 20:49:50 +0200 |
---|---|---|
committer | nikstur <nikstur@outlook.com> | 2023-05-16 20:51:28 +0200 |
commit | bbe2c27ace6d862aa49696f58b6dfabb71bd0cf1 (patch) | |
tree | ed2ff0adaff2e1882f9bf5d8f84b02a5db6059be /pkgs/tools/misc/bfscripts | |
parent | 2ee66a3000fd65bc76e83a62e57337a9dccdb7c2 (diff) | |
download | nixpkgs-bbe2c27ace6d862aa49696f58b6dfabb71bd0cf1.tar nixpkgs-bbe2c27ace6d862aa49696f58b6dfabb71bd0cf1.tar.gz nixpkgs-bbe2c27ace6d862aa49696f58b6dfabb71bd0cf1.tar.bz2 nixpkgs-bbe2c27ace6d862aa49696f58b6dfabb71bd0cf1.tar.lz nixpkgs-bbe2c27ace6d862aa49696f58b6dfabb71bd0cf1.tar.xz nixpkgs-bbe2c27ace6d862aa49696f58b6dfabb71bd0cf1.tar.zst nixpkgs-bbe2c27ace6d862aa49696f58b6dfabb71bd0cf1.zip |
bfscripts: init at unstable-2023-05-15
Diffstat (limited to 'pkgs/tools/misc/bfscripts')
-rw-r--r-- | pkgs/tools/misc/bfscripts/default.nix | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/pkgs/tools/misc/bfscripts/default.nix b/pkgs/tools/misc/bfscripts/default.nix new file mode 100644 index 00000000000..537cab8697a --- /dev/null +++ b/pkgs/tools/misc/bfscripts/default.nix @@ -0,0 +1,63 @@ +{ stdenv +, fetchFromGitHub +, lib +, python3 +}: + +let + # Most of the binaries are not really useful because they have hardcoded + # paths that only make sense when you're running the stock BlueField OS on + # your BlueField. These might be patched in the future with resholve + # (https://github.com/abathur/resholve). If there is one that makes sense + # without resholving it, it can simply be uncommented and will be included in + # the output. + binaries = [ + # "bfacpievt" + # "bfbootmgr" + # "bfcfg" + # "bfcpu-freq" + # "bfdracut" + # "bffamily" + # "bfgrubcheck" + # "bfhcafw" + # "bfinst" + # "bfpxe" + # "bfrec" + "bfrshlog" + # "bfsbdump" + # "bfsbkeys" + # "bfsbverify" + # "bfver" + # "bfvcheck" + "mlx-mkbfb" + "bfup" + ]; +in +stdenv.mkDerivation rec { + pname = "bfscripts"; + version = "unstable-2023-05-15"; + + src = fetchFromGitHub { + owner = "Mellanox"; + repo = pname; + rev = "1da79f3ece7cdf99b2571c00e8b14d2e112504a4"; + hash = "sha256-pTubrnZKEFmtAj/omycFYeYwrCog39zBDEszoCrsQNQ="; + }; + + buildInputs = [ + python3 + ]; + + installPhase = '' + ${lib.concatStringsSep "\n" (map (b: "install -D ${b} $out/bin/${b}") binaries)} + ''; + + meta = with lib; + { + description = "Collection of scripts used for BlueField SoC system management"; + homepage = "https://github.com/Mellanox/bfscripts"; + license = licenses.bsd2; + platforms = platforms.linux; + maintainers = with maintainers; [ nikstur ]; + }; +} |