Files
x/flake.nix

39 lines
808 B
Nix
Raw Normal View History

2024-12-18 15:33:03 -03:00
{
description = "My development environment";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
};
outputs = {nixpkgs, ...}: let
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 {
inherit (pkgs) lib stdenv;
inherit pkgs;
});
2024-12-18 15:33:03 -03:00
in {
devShells = forAllSystems ({pkgs, ...}: {
2024-12-18 15:33:03 -03:00
default = pkgs.mkShell {
CGO_ENABLED = "0";
hardeningDisable = ["all"];
buildInputs = with pkgs; [
# Go tools
go
golangci-lint
2025-02-24 08:06:21 -03:00
gofumpt
2024-12-18 15:33:03 -03:00
gotools
delve
];
};
});
};
}