build: nix flake for go_1_24 buildGo124Module

This commit is contained in:
Hermes 2026-06-22 22:34:35 -07:00
parent c3109e7aec
commit fb8fee6c64

22
flake.nix Normal file
View file

@ -0,0 +1,22 @@
{
description = "posts - posts-as-primitive control plane for scobleclaw";
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.11";
outputs = { self, nixpkgs }:
let
system = "x86_64-linux";
pkgs = import nixpkgs { inherit system; };
in {
packages.${system}.default = pkgs.buildGo124Module {
pname = "posts";
version = "0.0.1";
src = ./.;
vendorHash = null;
subPackages = [ "." ];
};
devShells.${system}.default = pkgs.mkShell {
packages = [ pkgs.go_1_24 pkgs.gnumake ];
};
};
}