28 lines
874 B
Nix
28 lines
874 B
Nix
{
|
|
description = "Ai Resume — build environment (Go + templ + SQLite). Node, Vite and bundlers are deliberately absent.";
|
|
|
|
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
|
|
|
outputs = { self, nixpkgs }:
|
|
let
|
|
systems = [ "x86_64-linux" "aarch64-linux" ];
|
|
forAll = f: nixpkgs.lib.genAttrs systems (system: f nixpkgs.legacyPackages.${system});
|
|
in {
|
|
devShells = forAll (pkgs: {
|
|
default = pkgs.mkShell {
|
|
packages = [
|
|
pkgs.go
|
|
pkgs.templ
|
|
pkgs.sqlite # the sqlite3 CLI, for inspecting the FTS5 index
|
|
pkgs.gnumake
|
|
pkgs.curl
|
|
];
|
|
shellHook = ''
|
|
echo "ai-resume dev shell — go $(go version | cut -d' ' -f3), templ $(templ version)"
|
|
echo "targets: make generate build test dev"
|
|
'';
|
|
};
|
|
});
|
|
};
|
|
}
|