summaryrefslogtreecommitdiff
path: root/flake.nix
blob: 03109f433f98c7b7db329706517631f61883ce7a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{
  description = "Build environment for Teensy 4.0";

  inputs = {
    nixpkgs.url = github:NixOS/nixpkgs/nixos-21.05;
  };

  outputs = { self, nixpkgs, ... }: let
    system = "x86_64-linux";
    pkgs = import nixpkgs { inherit system; };

    teensy-core = import ./core.nix { inherit pkgs; };
    teensy-test = import ./test.nix { inherit pkgs teensy-core; };
  in {
    packages.${system} = {
      inherit teensy-core teensy-test;
    };
  };
}