2024-09-15 21:15:56 +02:00
|
|
|
{
|
|
|
|
description = "A flake providing espressifs rust fork for esp32";
|
|
|
|
|
|
|
|
inputs = {
|
|
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
2024-09-16 10:21:57 +02:00
|
|
|
flake-utils.url = "github:numtide/flake-utils";
|
2024-09-15 21:15:56 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
outputs = {
|
|
|
|
nixpkgs,
|
2024-09-16 10:21:57 +02:00
|
|
|
flake-utils,
|
|
|
|
...
|
|
|
|
}:
|
|
|
|
flake-utils.lib.eachDefaultSystem (
|
|
|
|
system: let
|
|
|
|
pkgs = nixpkgs.legacyPackages.${system};
|
|
|
|
in {
|
|
|
|
packages = rec {
|
|
|
|
rust = import ./rust.nix {inherit pkgs system;};
|
|
|
|
clang = import ./clang.nix {inherit pkgs system;};
|
|
|
|
default = rust;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
);
|
2024-09-15 21:15:56 +02:00
|
|
|
}
|