commit bad59fe733db2c349f6049135a41227f967a6b94 Author: Weckyy702 Date: Sun Feb 22 00:03:14 2026 +0100 Hello, World! diff --git a/.envrc b/.envrc new file mode 100644 index 0000000..3550a30 --- /dev/null +++ b/.envrc @@ -0,0 +1 @@ +use flake diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ec70d4c --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +build/ +.cache +.direnv +pico_sdk_import.cmake diff --git a/flake.lock b/flake.lock new file mode 100644 index 0000000..619fae9 --- /dev/null +++ b/flake.lock @@ -0,0 +1,42 @@ +{ + "nodes": { + "nixpkgs": { + "locked": { + "lastModified": 1771369470, + "narHash": "sha256-0NBlEBKkN3lufyvFegY4TYv5mCNHbi5OmBDrzihbBMQ=", + "owner": "nixos", + "repo": "nixpkgs", + "rev": "0182a361324364ae3f436a63005877674cf45efb", + "type": "github" + }, + "original": { + "owner": "nixos", + "ref": "nixos-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, + "root": { + "inputs": { + "nixpkgs": "nixpkgs", + "systems": "systems" + } + }, + "systems": { + "locked": { + "lastModified": 1681028828, + "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", + "owner": "nix-systems", + "repo": "default", + "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", + "type": "github" + }, + "original": { + "id": "systems", + "type": "indirect" + } + } + }, + "root": "root", + "version": 7 +} diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..465f872 --- /dev/null +++ b/flake.nix @@ -0,0 +1,45 @@ +{ + inputs.nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; + + outputs = + inputs @ { nixpkgs + , systems + , ... + }: + let + inherit (nixpkgs) lib; + eachSystem = lib.genAttrs (import systems); + pkgsFor = eachSystem (system: + import nixpkgs { + localSystem = system; + }); + in + { + devShells = + eachSystem + (system: { + default = + let + pkgs = pkgsFor.${system}; + pico-sdk = pkgs.pico-sdk.override { + withSubmodules = true; + }; + PICO_SDK_PATH = "${pico-sdk}/lib/pico-sdk"; + in + pkgs.mkShell { + name = "PicoVGA dev shell"; + inputsFrom = [ pico-sdk ]; + packages = with pkgs; + [ + ] + ++ [ pico-sdk ]; + + shellHook = '' + ln -sf ${PICO_SDK_PATH}/external/pico_sdk_import.cmake pico_sdk_import.cmake + ''; + + inherit PICO_SDK_PATH; + }; + }); + }; +}