diff options
Diffstat (limited to 'flake.nix')
| -rw-r--r-- | flake.nix | 19 | 
1 files changed, 19 insertions, 0 deletions
diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..03109f4 --- /dev/null +++ b/flake.nix @@ -0,0 +1,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; +    }; +  }; +}  | 
