From 3803500bc7262cc793f4ea344493eb1ea677f1e7 Mon Sep 17 00:00:00 2001 From: Maxwell Beck Date: Sat, 24 Oct 2026 19:13:20 -0500 Subject: flake init --- flake.nix | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 flake.nix (limited to 'flake.nix') 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 ]); + }); + }); +} -- cgit v1.3.1