summaryrefslogtreecommitdiff
path: root/flake.nix
blob: 560b5fa949ee0300a8b92d23962500e1ae1ab9dd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{
  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; };
    teensy-ulisp = import ./ulisp.nix { inherit pkgs teensy-core; };
  in {
    packages.${system} = {
      inherit teensy-core teensy-test teensy-ulisp;
    };
  };
}