Initial commit

This commit is contained in:
ktkk 2025-09-24 10:04:30 +00:00
commit 82d714d8a3
9 changed files with 251 additions and 0 deletions

36
flake.nix Normal file
View file

@ -0,0 +1,36 @@
{
description = "Go Template";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = {
nixpkgs,
flake-utils,
...
}:
flake-utils.lib.eachDefaultSystem (
system: let
pkgs = nixpkgs.legacyPackages.${system};
nativeBuildInputs = with pkgs; [
go
gopls
];
buildInputs = with pkgs; [];
in {
devShells.default = pkgs.mkShell {inherit nativeBuildInputs buildInputs;};
packages.default = pkgs.buildGoModule rec {
name = "template";
src = ./.;
inherit buildInputs;
vendorHash = null;
};
}
);
}