Added (90%)template flake based nix development shell

This commit is contained in:
Emile Clark-Boman 2025-07-22 02:59:46 +10:00
parent 97e3b3d937
commit 7e36e6084a
2 changed files with 50 additions and 6 deletions

View file

@ -1,7 +1,24 @@
{pkgs ? import <nixpkgs> {}}:
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
];
};
};
}