Add initial flake.nix and default.nix

For NixOS development
This commit is contained in:
Eli Ribble 2026-05-14 15:33:53 +00:00
parent 4474319e73
commit 5b65a3d4ef
No known key found for this signature in database
3 changed files with 101 additions and 0 deletions

27
flake.nix Normal file
View file

@ -0,0 +1,27 @@
{
description = "A go library for SQL generation";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.11";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = nixpkgs.legacyPackages.${system};
package = import ./default.nix { inherit pkgs; };
in
{
packages.default = package;
# Development shell configuration
devShells.default = pkgs.mkShell {
buildInputs = [
pkgs.go
pkgs.lefthook
];
};
}
);
}