First working version of the flake

Signed-off-by: jmug <u.g.a.mariano@gmail.com>
This commit is contained in:
Mariano Uvalle 2025-05-16 15:14:13 -07:00
parent c878871381
commit a4727d4963
4 changed files with 201 additions and 0 deletions

30
flake.nix Normal file
View file

@ -0,0 +1,30 @@
{
description = "flake for rp2040 dev";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/release-24.11";
systems.url = "github:nix-systems/default";
flake-utils = {
url = "github:numtide/flake-utils";
inputs.systems.follows = "systems";
};
};
outputs =
{ nixpkgs, flake-utils, ... }@inputs:
flake-utils.lib.eachDefaultSystem (
system:
let
pkgs = nixpkgs.legacyPackages.${system};
openocd = pkgs.callPackage ./openocd.nix { };
in
{
devShells.default = pkgs.mkShell {
packages = with pkgs; [
openocd
];
};
default = openocd;
}
);
}