From fb8fee6c645d97fae5b182fcfe376ac4eb803620 Mon Sep 17 00:00:00 2001 From: Hermes Date: Mon, 22 Jun 2026 22:34:35 -0700 Subject: [PATCH] build: nix flake for go_1_24 buildGo124Module --- flake.nix | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 flake.nix diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..9caf02e --- /dev/null +++ b/flake.nix @@ -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 ]; + }; + }; +}