Add flake.nix

Signed-off-by: Oliver Davies <oliver@oliverdavies.uk>
This commit is contained in:
Oliver Davies 2025-09-23 00:28:56 +01:00
parent 3423ca6d54
commit 3546af03c4
3 changed files with 51 additions and 1 deletions

23
go-api/flake.nix Normal file
View file

@ -0,0 +1,23 @@
{
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
outputs =
{ nixpkgs, ... }:
let
system = "x86_64-linux";
pkgs = import nixpkgs { inherit system; };
in
{
devShells.${system}.default = pkgs.mkShell {
packages = with pkgs; [
curlMinimal
go
jq
];
shellHook = ''
go version
'';
};
};
}