diff options
Diffstat (limited to 'flake.nix')
| -rw-r--r-- | flake.nix | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..941a950 --- /dev/null +++ b/flake.nix @@ -0,0 +1,20 @@ +{ + inputs = { + nixpkgs.url = "https://channels.nixos.org/nixpkgs-unstable/nixexprs.tar.zst"; + flake-utils.url = "github:numtide/flake-utils"; + }; + + outputs = { self, nixpkgs, flake-utils }: + flake-utils.lib.eachDefaultSystem (system: let + pkgs = nixpkgs.legacyPackages.${system}; + pico1541 = pkgs.callPackage (import ./nix/pico1541.nix) {}; + in { + packages.pico1541 = pico1541; + packages.default = pico1541; + + devShells.default = pico1541.overrideAttrs (o: { + nativeBuildInputs = o.nativeBuildInputs + ++ (with pkgs; [ clang-tools openocd ]); + }); + }); +} |
