This commit is contained in:
lucy 2025-09-01 18:37:12 +02:00
commit 71ed2bc003
3 changed files with 132 additions and 0 deletions

38
flake.nix Normal file
View 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"
'';
};
};
}