chore: format repo using treefmt-nix and nixfmt-rfc-style

This commit is contained in:
Andre
2025-06-04 12:11:03 -04:00
parent fc7c471412
commit 51e51e6014
266 changed files with 3721 additions and 2733 deletions

View File

@@ -1,4 +1,12 @@
{ stdenv, gcc11Stdenv, buildUBoot, fetchurl, fetchFromGitLab, lib, bison }:
{
stdenv,
gcc11Stdenv,
buildUBoot,
fetchurl,
fetchFromGitLab,
lib,
bison,
}:
let
firmware-imx = stdenv.mkDerivation (fa: {
pname = "firmware-imx";
@@ -20,7 +28,7 @@ let
meta.license = lib.licenses.unfree;
});
arm-trusted-firmware-imx8mq = gcc11Stdenv.mkDerivation (fa: {
arm-trusted-firmware-imx8mq = gcc11Stdenv.mkDerivation (_fa: {
pname = "arm-trusted-firmware-bl31";
version = "unstable-2020-07-08";
src = fetchFromGitLab {
@@ -33,7 +41,10 @@ let
enableParallelBuilding = true;
hardeningDisable = [ "all" ];
NIX_LDFLAGS = "--no-warn-rwx-segments";
buildFlags = [ "PLAT=imx8mq" "bl31" ];
buildFlags = [
"PLAT=imx8mq"
"bl31"
];
installPhase = ''
mkdir -p $out
cp build/imx8mq/release/bl31.bin $out
@@ -51,7 +62,7 @@ let
rev = "956aa590c93977992743b41c45d3c7ee5a024915"; # this is the latest commit on the upstream/librem5 branch
hash = "sha256-MsIIlarN+WFFEzc0ptLAgS7BwJ6Cosy42xo0EwPn1AU=";
};
patches = [];
patches = [ ];
BL31 = "${arm-trusted-firmware-imx8mq}/bl31.bin";
preConfigure = ''
cp $BL31 .