build: nix flake for go_1_24 buildGo124Module
This commit is contained in:
parent
c3109e7aec
commit
fb8fee6c64
1 changed files with 22 additions and 0 deletions
22
flake.nix
Normal file
22
flake.nix
Normal 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 ];
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue