Files
extrovert/flake.nix
Gustavo "Guz" L. de Mello 2686a045fd chore: initial setup
2024-06-24 11:50:06 -03:00

31 lines
648 B
Nix

{
description = "learning.rs";
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 system pkgs);
in
{
devShells = forAllSystems (system: pkgs: {
default = pkgs.mkShell {
buildInputs = with pkgs; [
go
golangci-lint
];
};
});
};
}