flake: cleanup, indentation, comments
This commit is contained in:
parent
8497f9746b
commit
e81d020e90
11
flake.nix
11
flake.nix
@ -8,7 +8,6 @@
|
||||
let
|
||||
pkgs = import nixpkgs { system = "x86_64-linux"; overlays = [ (import mozilla-overlay) ]; };
|
||||
|
||||
# ==== rustPlatform
|
||||
rustManifest = pkgs.fetchurl {
|
||||
url = "https://static.rust-lang.org/dist/2021-01-29/channel-rust-nightly.toml";
|
||||
sha256 = "sha256-EZKgw89AH4vxaJpUHmIMzMW/80wAFQlfcxRoBD9nz0c=";
|
||||
@ -26,7 +25,7 @@
|
||||
rustc = rust;
|
||||
cargo = rust;
|
||||
});
|
||||
# ==== rustPlatform / gnutoolchain
|
||||
|
||||
gnu-platform = "arm-none-eabi";
|
||||
|
||||
binutils-pkg = { zlib, extraConfigureFlags ? [] }: pkgs.stdenv.mkDerivation rec {
|
||||
@ -139,7 +138,7 @@
|
||||
extraConfigureFlags = [ "--enable-newlib" "--with-headers=${newlib}/arm-none-eabi/include" ];
|
||||
};
|
||||
};
|
||||
# ==== gnutoolchain/cargo-xbuild
|
||||
|
||||
cargo-xbuild = rustPlatform.buildRustPackage rec {
|
||||
pname = "cargo-xbuild";
|
||||
version = "0.6.5";
|
||||
@ -159,7 +158,7 @@
|
||||
maintainers = with maintainers; [ johntitor xrelkd ];
|
||||
};
|
||||
};
|
||||
# ==== cargo-xbuild/mkbootimage
|
||||
|
||||
mkbootimage = pkgs.stdenv.mkDerivation {
|
||||
pname = "mkbootimage";
|
||||
version = "2.2";
|
||||
@ -182,7 +181,7 @@
|
||||
cp mkbootimage $out/bin
|
||||
'';
|
||||
};
|
||||
# ==== mkbootimage/fsbl
|
||||
|
||||
fsbl = { board ? "zc706" }: pkgs.stdenv.mkDerivation {
|
||||
name = "${board}-fsbl";
|
||||
src = pkgs.fetchFromGitHub {
|
||||
@ -213,7 +212,7 @@
|
||||
doCheck = false;
|
||||
dontFixup = true;
|
||||
};
|
||||
# ==== fsbl/default
|
||||
|
||||
cargoSha256Experiments = "1bvffgr4588bbkjwnhim8rvkjvbnajaiv7hc98b19sr8kb7rcj63";
|
||||
cargoSha256SZL = "13022ssk6s2fgxmmh5msbx01fzcmk2cj95fjpxcsmfy14k9wd77l";
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user