linuxPackages_latest.broadcom_sta: reformat
This commit is contained in:
@@ -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" ];
|
||||
|
||||
Reference in New Issue
Block a user