Files
guz.one/flake.nix
Gustavo "Guz" L. de Mello 520597508c chore: initial commit
2024-05-20 18:37:18 -03:00

38 lines
794 B
Nix

{
description = "learning.rs";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
templ.url = "github:a-h/templ";
};
outputs =
{ self
, nixpkgs
, flake-utils
, ...
} @ inputs:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs {
inherit system;
};
templ = inputs.templ.packages.${system}.templ;
in
{
devShells.default =
pkgs.mkShell
{
buildInputs = with pkgs; [
air
go
golangci-lint
templ
nodePackages_latest.vercel
];
shellHook = "
export GOOS=linux
";
};
});
}