lol

Merge pull request #303694 from panicgh/storcli

storcli: 7.2309.00 -> 7.2904.00, move to by-name

authored by

Aleksana and committed by
GitHub
d3bf7abb 5784e9de

+61 -54
+61
pkgs/by-name/st/storcli/package.nix
··· 1 + { lib 2 + , stdenvNoCC 3 + , fetchzip 4 + , rpmextract 5 + , testers 6 + }: 7 + 8 + stdenvNoCC.mkDerivation (finalAttrs: { 9 + pname = "storcli"; 10 + version = "7.2904.00"; 11 + phase = "30"; 12 + 13 + src = fetchzip { 14 + 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"; 15 + hash = "sha256-VfK71eiDonzWdR6g5zkXgRRi25vwoI4DDL6xy3zsfak="; 16 + }; 17 + 18 + nativeBuildInputs = [ rpmextract ]; 19 + 20 + unpackPhase = let 21 + inherit (stdenvNoCC.hostPlatform) system; 22 + platforms = { 23 + x86_64-linux = "Linux"; 24 + aarch64-linux = "ARM/Linux"; 25 + }; 26 + platform = platforms.${system} or (throw "unsupported system: ${system}"); 27 + in '' 28 + rpmextract $src/univ_viva_cli_rel/Unified_storcli_all_os/${platform}/storcli-00${finalAttrs.version}00.0000-1.*.rpm 29 + ''; 30 + 31 + dontPatch = true; 32 + dontConfigure = true; 33 + dontBuild = true; 34 + 35 + installPhase = '' 36 + install -D ./opt/MegaRAID/storcli/storcli64 $out/bin/storcli64 37 + ln -s storcli64 $out/bin/storcli 38 + ''; 39 + 40 + # Not needed because the binary is statically linked 41 + dontFixup = true; 42 + 43 + passthru.tests = testers.testVersion { 44 + package = finalAttrs.finalPackage; 45 + command = "${finalAttrs.meta.mainProgram} -v"; 46 + version = "00${finalAttrs.version}00.0000"; 47 + }; 48 + 49 + meta = with lib; { 50 + # Unfortunately there is no better page for this. 51 + # Filter for downloads, set 100 items per page. Sort by newest does not work. 52 + # Then search manually for the latest version. 53 + homepage = "https://www.broadcom.com/support/download-search?pg=&pf=Host+Bus+Adapters&pn=&pa=&po=&dk=storcli&pl=&l=false"; 54 + description = "Storage Command Line Tool"; 55 + sourceProvenance = with sourceTypes; [ binaryNativeCode ]; 56 + license = licenses.unfree; 57 + maintainers = with maintainers; [ panicgh ]; 58 + mainProgram = "storcli"; 59 + platforms = [ "x86_64-linux" "aarch64-linux" ]; 60 + }; 61 + })
-52
pkgs/tools/misc/storcli/default.nix
··· 1 - { lib 2 - , stdenvNoCC 3 - , fetchzip 4 - , rpmextract 5 - }: 6 - 7 - stdenvNoCC.mkDerivation rec { 8 - pname = "storcli"; 9 - version = "7.2309.00"; 10 - 11 - src = fetchzip { 12 - url = "https://docs.broadcom.com/docs-and-downloads/raid-controllers/raid-controllers-common-files/Unified_storcli_all_os_${version}00.0000.zip"; 13 - sha256 = "sha256-n2MzT2LHLHWMWhshWXJ/Q28w9EnLrW6t7hLNveltxLo="; 14 - }; 15 - 16 - nativeBuildInputs = [ rpmextract ]; 17 - 18 - unpackPhase = let 19 - inherit (stdenvNoCC.hostPlatform) system; 20 - platforms = { 21 - x86_64-linux = "Linux"; 22 - aarch64-linux = "ARM/Linux"; 23 - }; 24 - platform = platforms.${system} or (throw "unsupported system: ${system}"); 25 - in '' 26 - rpmextract $src/${platform}/storcli-00${version}00.0000-1.*.rpm 27 - ''; 28 - 29 - dontPatch = true; 30 - dontConfigure = true; 31 - dontBuild = true; 32 - 33 - installPhase = '' 34 - install -D ./opt/MegaRAID/storcli/storcli64 $out/bin/storcli64 35 - ln -s storcli64 $out/bin/storcli 36 - ''; 37 - 38 - # Not needed because the binary is statically linked 39 - dontFixup = true; 40 - 41 - meta = with lib; { 42 - # Unfortunately there is no better page for this. 43 - # Filter for downloads, set 100 items per page. Sort by newest does not work. 44 - # Then search manually for the latest version. 45 - homepage = "https://www.broadcom.com/site-search?q=storcli"; 46 - description = "Storage Command Line Tool"; 47 - sourceProvenance = with sourceTypes; [ binaryNativeCode ]; 48 - license = licenses.unfree; 49 - maintainers = with maintainers; [ panicgh ]; 50 - platforms = [ "x86_64-linux" "aarch64-linux" ]; 51 - }; 52 - }
-2
pkgs/top-level/all-packages.nix
··· 13288 13288 13289 13289 stm32loader = with python3Packages; toPythonApplication stm32loader; 13290 13290 13291 - storcli = callPackage ../tools/misc/storcli { }; 13292 - 13293 13291 stremio = qt5.callPackage ../applications/video/stremio { }; 13294 13292 13295 13293 sunwait = callPackage ../applications/misc/sunwait { };