Files
comicverse/flake.nix

53 lines
1005 B
Nix
Raw Normal View History

2024-09-16 09:12:40 -03:00
{
description = "My development environment";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
};
2025-03-01 19:35:33 -03:00
outputs = {nixpkgs, ...}: let
2024-09-16 09:12:40 -03:00
systems = [
"x86_64-linux"
"aarch64-linux"
"x86_64-darwin"
"aarch64-darwin"
];
forAllSystems = f:
nixpkgs.lib.genAttrs systems (system: let
pkgs = import nixpkgs {inherit system;};
in
f system pkgs);
in {
devShells = forAllSystems (system: pkgs: {
default = pkgs.mkShell {
CGO_ENABLED = "1";
hardeningDisable = ["fortify"];
2024-10-11 22:30:13 -03:00
shellHook = ''
set -a
source .env
set +a
'';
2024-09-16 09:12:40 -03:00
buildInputs = with pkgs; [
2024-10-04 19:41:07 -03:00
# Go tools
go
golangci-lint
2025-03-01 19:35:33 -03:00
gofumpt
2024-10-04 19:41:07 -03:00
gotools
delve
2024-10-11 22:30:13 -03:00
2025-03-06 10:02:35 -03:00
# TailwindCSS
2025-03-17 10:01:36 -03:00
tailwindcss_4
2025-03-06 10:02:35 -03:00
2024-10-04 19:41:07 -03:00
# Sqlite tools
sqlite
lazysql
litecli
# S3
awscli
2024-09-16 09:12:40 -03:00
];
};
});
};
}