add nix devshell (flake based)

This commit is contained in:
Emile Clark-Boman 2025-07-28 23:14:35 +10:00
parent b5f9d111c7
commit 16a54d07a7
2 changed files with 54 additions and 0 deletions

27
flake.nix Normal file
View file

@ -0,0 +1,27 @@
# Template: https://nixos-and-flakes.thiscute.world/development/intro
{
description = "Dev Shell for dobutterfliescry.net";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-25.05";
};
outputs = {nixpkgs, ...}: let
system = "x86_64-linux";
in {
devShells."${system}".default = let
pkgs = import nixpkgs {
inherit system;
};
in
pkgs.mkShell {
packages = with pkgs; [
bash
simple-http-server
imagemagick
];
shell = "${pkgs.bash}/bin/bash";
};
};
}