mirror of
https://github.com/NixOS/nixos-hardware.git
synced 2025-11-05 09:38:07 +08:00
chore: format repo using treefmt-nix and nixfmt-rfc-style
This commit is contained in:
@@ -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 .
|
||||
|
||||
Reference in New Issue
Block a user