Merge pull request #303694 from panicgh/storcli

storcli: 7.2309.00 -> 7.2904.00, move to by-name
This commit is contained in:
Aleksana 2024-04-18 01:48:26 +08:00 committed by GitHub
commit d3bf7abb55
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 16 additions and 9 deletions

View file

@ -2,15 +2,17 @@
, stdenvNoCC
, fetchzip
, rpmextract
, testers
}:
stdenvNoCC.mkDerivation rec {
stdenvNoCC.mkDerivation (finalAttrs: {
pname = "storcli";
version = "7.2309.00";
version = "7.2904.00";
phase = "30";
src = fetchzip {
url = "https://docs.broadcom.com/docs-and-downloads/raid-controllers/raid-controllers-common-files/Unified_storcli_all_os_${version}00.0000.zip";
sha256 = "sha256-n2MzT2LHLHWMWhshWXJ/Q28w9EnLrW6t7hLNveltxLo=";
url = "https://docs.broadcom.com/docs-and-downloads/host-bus-adapters/host-bus-adapters-common-files/sas_sata_nvme_12g_p${finalAttrs.phase}/STORCLI_SAS3.5_P${finalAttrs.phase}.zip";
hash = "sha256-VfK71eiDonzWdR6g5zkXgRRi25vwoI4DDL6xy3zsfak=";
};
nativeBuildInputs = [ rpmextract ];
@ -23,7 +25,7 @@ stdenvNoCC.mkDerivation rec {
};
platform = platforms.${system} or (throw "unsupported system: ${system}");
in ''
rpmextract $src/${platform}/storcli-00${version}00.0000-1.*.rpm
rpmextract $src/univ_viva_cli_rel/Unified_storcli_all_os/${platform}/storcli-00${finalAttrs.version}00.0000-1.*.rpm
'';
dontPatch = true;
@ -38,15 +40,22 @@ stdenvNoCC.mkDerivation rec {
# Not needed because the binary is statically linked
dontFixup = true;
passthru.tests = testers.testVersion {
package = finalAttrs.finalPackage;
command = "${finalAttrs.meta.mainProgram} -v";
version = "00${finalAttrs.version}00.0000";
};
meta = with lib; {
# Unfortunately there is no better page for this.
# Filter for downloads, set 100 items per page. Sort by newest does not work.
# Then search manually for the latest version.
homepage = "https://www.broadcom.com/site-search?q=storcli";
homepage = "https://www.broadcom.com/support/download-search?pg=&pf=Host+Bus+Adapters&pn=&pa=&po=&dk=storcli&pl=&l=false";
description = "Storage Command Line Tool";
sourceProvenance = with sourceTypes; [ binaryNativeCode ];
license = licenses.unfree;
maintainers = with maintainers; [ panicgh ];
mainProgram = "storcli";
platforms = [ "x86_64-linux" "aarch64-linux" ];
};
}
})

View file

@ -13288,8 +13288,6 @@ with pkgs;
stm32loader = with python3Packages; toPythonApplication stm32loader;
storcli = callPackage ../tools/misc/storcli { };
stremio = qt5.callPackage ../applications/video/stremio { };
sunwait = callPackage ../applications/misc/sunwait { };