Repository navigation
Expand file tree
/
Copy pathflake.nix
More file actions
51 lines (45 loc) · 1.31 KB
/
Copy pathflake.nix
File metadata and controls
51 lines (45 loc) · 1.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
{
description = "Go project for simples3 with ListObjectsV2 support";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
};
outputs = { self, nixpkgs }:
let
supportedSystems = [ "x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin" ];
forEachSystem = f: nixpkgs.lib.genAttrs supportedSystems (system: f {
pkgs = import nixpkgs {
inherit system;
};
});
in
{
devShells = forEachSystem ({ pkgs }: {
default = pkgs.mkShell {
buildInputs = with pkgs; [
# Go development
go
gopls
go-outline
delve
# Build tools and utilities
just
docker
awscli2
# Additional utilities
curl
jq
];
# Environment variables for the shell
shellHook = ''
echo "🚀 SimpleS3 Development Environment Loaded"
echo "Go version: $(go version)"
echo "Available commands: just --list"
export GOPATH=$(go env GOPATH)
export PATH=$PATH:$GOPATH/bin
# Shared public test-fixture settings for the CLI and the Go tests.
source ${./scripts/seaweedfs-env.sh}
'';
};
});
};
}