summaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
authorMaxwell Beck <max@rastertail.net>2026-10-24 19:13:20 -0500
committerMaxwell Beck <max@rastertail.net>2026-10-24 19:13:20 -0500
commit3803500bc7262cc793f4ea344493eb1ea677f1e7 (patch)
treebf8439b14245dfb4c9d3c208a615dd766b604421 /flake.nix
flake init
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix20
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 ]);
+ });
+ });
+}