From cbe502d86a623a4633bed0f052fc8086fba90bd9 Mon Sep 17 00:00:00 2001 From: Pol Dellaiera Date: Wed, 28 Aug 2024 16:28:25 +0200 Subject: [PATCH] linuxPackages_latest.broadcom_sta: reformat --- pkgs/os-specific/linux/broadcom-sta/default.nix | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/pkgs/os-specific/linux/broadcom-sta/default.nix b/pkgs/os-specific/linux/broadcom-sta/default.nix index e7911bd99b09..ef525a520ad8 100644 --- a/pkgs/os-specific/linux/broadcom-sta/default.nix +++ b/pkgs/os-specific/linux/broadcom-sta/default.nix @@ -1,14 +1,19 @@ -{ lib, stdenv, fetchurl, kernel }: +{ + lib, + stdenv, + fetchurl, + kernel, +}: let version = "6.30.223.271"; hashes = { - i686-linux = "sha256-T4twspOsjMXHDlca1dGHjQ8p0TOkb+eGmGjZwZtQWM0="; + i686-linux = "sha256-T4twspOsjMXHDlca1dGHjQ8p0TOkb+eGmGjZwZtQWM0="; x86_64-linux = "sha256-X3l3TVvuyPdja1nA+wegMQju8eP9MkVjiyCFjHFBRL4="; }; arch = lib.optionalString (stdenv.hostPlatform.system == "x86_64-linux") "_64"; - tarballVersion = lib.replaceStrings ["."] ["_"] version; + tarballVersion = lib.replaceStrings [ "." ] [ "_" ] version; tarball = "hybrid-v35${arch}-nodebug-pcoem-${tarballVersion}.tar.gz"; in stdenv.mkDerivation { @@ -16,7 +21,8 @@ stdenv.mkDerivation { src = fetchurl { url = "https://docs.broadcom.com/docs-and-downloads/docs/linux_sta/${tarball}"; - hash = hashes.${stdenv.hostPlatform.system} or (throw "Unsupported system: ${stdenv.hostPlatform.system}"); + hash = + hashes.${stdenv.hostPlatform.system} or (throw "Unsupported system: ${stdenv.hostPlatform.system}"); }; hardeningDisable = [ "pic" ];