Adding current project state

This commit is contained in:
2026-06-05 16:44:41 -05:00
commit 073db62fb1
10 changed files with 663 additions and 0 deletions

44
flake.nix Normal file
View File

@@ -0,0 +1,44 @@
{
description = "Dev shell";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, utils }:
utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs {
inherit system;
config = {
allowUnfree = true;
};
};
dotnetRuntime = pkgs.dotnet-runtime_10.passthru.unwrapped;
in
{
devShells.default = pkgs.mkShell {
buildInputs = with pkgs; [
go
gopls
gotools
delve
golangci-lint
pkgs.dotnet-runtime_10
patchelf
];
shellHook = ''
export DOTNET_ROOT="${dotnetRuntime}/share/dotnet"
export DOTNET_ROOT_X64="${dotnetRuntime}/share/dotnet"
export LD_LIBRARY_PATH="${pkgs.stdenv.cc.cc.lib}/lib:${pkgs.zlib}/lib:/run/opengl-driver/lib:$LD_LIBRARY_PATH"
echo " == Dev shell loaded == "
'';
};
}
);
}