Adding current project state
This commit is contained in:
44
flake.nix
Normal file
44
flake.nix
Normal 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 == "
|
||||
'';
|
||||
};
|
||||
}
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user