init
This commit is contained in:
commit
71ed2bc003
3 changed files with 132 additions and 0 deletions
38
flake.nix
Normal file
38
flake.nix
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
{
|
||||
description = "A very basic flake";
|
||||
|
||||
inputs = {
|
||||
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
|
||||
};
|
||||
|
||||
outputs = { self, nixpkgs }:
|
||||
let
|
||||
arch = "x86_64";
|
||||
system = "${arch}-linux";
|
||||
pkgs = import nixpkgs { inherit system; };
|
||||
|
||||
lib = pkgs.lib;
|
||||
|
||||
fs = lib.fileset;
|
||||
|
||||
# Cross Compilation Toolchain
|
||||
binutilsStage = import ./derivations/cross_toolchain/binutils.nix { pkgs = pkgs; };
|
||||
in
|
||||
{
|
||||
packages.${system}.crossToolchain = {
|
||||
binutils = binutilsStage;
|
||||
};
|
||||
|
||||
formatter.x86_64-linux = nixpkgs.legacyPackages.x86_64-linux.nixfmt-rfc-style;
|
||||
|
||||
devShells.x86_64-linux.default = pkgs.mkShell {
|
||||
buildInputs = with pkgs; [
|
||||
git
|
||||
nixfmt-rfc-style
|
||||
];
|
||||
shellHook = ''
|
||||
echo "Welcome to LucyOS Dev Env"
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue