diff --git a/flake.lock b/flake.lock new file mode 100644 index 0000000..36c92f5 --- /dev/null +++ b/flake.lock @@ -0,0 +1,27 @@ +{ + "nodes": { + "nixpkgs": { + "locked": { + "lastModified": 1752866191, + "narHash": "sha256-NV4S2Lf2hYmZQ3Qf4t/YyyBaJNuxLPyjzvDma0zPp/M=", + "owner": "nixos", + "repo": "nixpkgs", + "rev": "f01fe91b0108a7aff99c99f2e9abbc45db0adc2a", + "type": "github" + }, + "original": { + "owner": "nixos", + "ref": "nixos-25.05", + "repo": "nixpkgs", + "type": "github" + } + }, + "root": { + "inputs": { + "nixpkgs": "nixpkgs" + } + } + }, + "root": "root", + "version": 7 +} diff --git a/flake.nix b/flake.nix index cd10e71..83d192c 100644 --- a/flake.nix +++ b/flake.nix @@ -1,7 +1,24 @@ -{pkgs ? import {}}: -pkgs.mkShell { - # nativeBuildInputs is usually what you want -- tools you need to run - nativeBuildInputs = with pkgs.buildPackages; [ - emscripten - ]; +# Template: https://nixos-and-flakes.thiscute.world/development/intro +{ + description = "TinyEMU Nix Dev Shell (Flake-Based)"; + + inputs = { + nixpkgs.url = "github:nixos/nixpkgs/nixos-25.05"; + }; + + outputs = {nixpkgs, ...}: let + # system should match the system you are running on + system = "x86_64-linux"; + in { + devShells."${system}".default = let + pkgs = import nixpkgs { + inherit system; + }; + in + pkgs.mkShell { + packages = with pkgs; [ + emscripten + ]; + }; + }; }