Skip to content
This repository was archived by the owner on Sep 28, 2025. It is now read-only.
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
63 changes: 33 additions & 30 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -1,36 +1,39 @@
{
description = "flake to setup the dev env required for Tandem";
inputs.nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs =
{ self, nixpkgs }:
let
system = "x86_64-linux";
pkgs = import nixpkgs {
inherit system;
config.allowUnfree = true;
};
in
{
devShells.${system}.default =
with pkgs;
{ self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs {
inherit system;
config.allowUnfree = true;
};
in
{
devShells.default =
with pkgs;

mkShell {
buildInputs = [
go
gopls
gotools
vagrant
sqlc
goreleaser
];
mkShell {
buildInputs = [
go
gopls
gotools
vagrant
sqlc
goreleaser
];

shellHook = ''
export GOROOT="${pkgs.go}/share/go"
export GOPATH="$PWD/.go"
export PATH="$GOPATH/bin:$PATH"
export GOBIN="$GOPATH/bin"
source tandem.env
'';
};
};
shellHook = ''
export GOROOT="${pkgs.go}/share/go"
export GOPATH="$PWD/.go"
export PATH="$GOPATH/bin:$PATH"
export GOBIN="$GOPATH/bin"
source tandem.env
'';
};
});
}
Loading