From b006b3c355616c89d66084880b5a5a87f0241009 Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Sat, 9 Oct 2021 23:41:40 +0200 Subject: Basic build environment for Teensy 4.0 programs --- flake.nix | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 flake.nix (limited to 'flake.nix') 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; + }; + }; +} -- cgit v1.2.3