termtap/flake.nix
Hayden Hargreaves 633e530c91
Some checks failed
Release / build (amd64, darwin, macos-latest) (push) Has been cancelled
Release / build (amd64, linux, ubuntu-latest) (push) Has been cancelled
Release / build (amd64, windows, windows-latest) (push) Has been cancelled
Release / build (arm64, darwin, macos-latest) (push) Has been cancelled
Release / build (arm64, linux, ubuntu-latest) (push) Has been cancelled
Release / release (push) Has been cancelled
ci/cd: creating a workflow
2026-04-23 23:13:34 -07:00

45 lines
1.0 KiB
Nix

{
description = "TermTap Development Flake";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { nixpkgs, flake-utils, ... }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs { inherit system; };
in
{
devShells.default = pkgs.mkShell {
packages = with pkgs; [
go
gopls
go-tools
gcc_multi
glibc_multi
nodejs_24
tailwindcss_4
tailwindcss-language-server
];
name = "TermTap";
inherit (pkgs) zsh;
shellHook = ''
# Use the .local directory instead of home
export GOPATH="$HOME/.local/go"
echo "Settings GOPATH to: $HOME/.local/go "
export GOOS=linux
export GOARCH=amd64
export CGO_CFLAGS=-Wno-error=cpp;
exec zsh
'';
};
}
);
}