added shells

This commit is contained in:
Nico
2025-05-25 21:35:28 +02:00
parent efae880e63
commit e3c6e694f1
3 changed files with 105 additions and 0 deletions

32
shells/go/flake.nix Normal file
View File

@@ -0,0 +1,32 @@
{
description = "GO";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs {
inherit system;
};
in
{
devShell =
with pkgs; mkShell rec {
# ANDROID_SDK_ROOT = "${androidSdk}/libexec/android-sdk";
GOPATH="${go}";
buildInputs = [
go
];
shellHook = ''
zsh
exit
'';
};
});
}