Files
extrovert/flake.nix

34 lines
794 B
Nix
Raw Permalink Normal View History

2024-06-24 11:50:06 -03:00
{
description = "learning.rs";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
2024-06-27 19:53:09 -03:00
templ.url = "github:a-h/templ?ref=v0.2.707";
2024-06-24 11:50:06 -03:00
};
2024-06-27 19:53:09 -03:00
outputs = { nixpkgs, ... } @ inputs:
2024-06-24 11:50:06 -03:00
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);
2024-06-27 19:53:09 -03:00
templ = system: inputs.templ.packages.${system}.templ;
2024-06-24 11:50:06 -03:00
in
{
devShells = forAllSystems (system: pkgs: {
default = pkgs.mkShell {
buildInputs = with pkgs; [
go
golangci-lint
2024-06-27 19:53:09 -03:00
(templ system)
2024-06-24 11:50:06 -03:00
];
};
});
};
}