Use Build Configs

This commit is contained in:
Oliver Davies 2025-10-07 07:51:48 +01:00
parent 882e428053
commit 0e55475d85
4 changed files with 23 additions and 5 deletions

2
.envrc
View file

@ -1 +1 @@
use flake "git+https://code.oliverdavies.uk/opdavies/dev-shells#go" use flake

4
build
View file

@ -2,8 +2,4 @@
set -euo pipefail set -euo pipefail
echo "Building..."
go build -o zet cmd/zet/main.go go build -o zet cmd/zet/main.go
echo "Done."

3
build-configs.yaml Normal file
View file

@ -0,0 +1,3 @@
---
name: zet
template: go-cobra-cli

19
flake.nix Normal file
View file

@ -0,0 +1,19 @@
{
inputs.nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
outputs = inputs:
let
system = "x86_64-linux";
pkgs = import inputs.nixpkgs { inherit system; };
in
{
devShells.${system}.default =
with pkgs;
mkShell {
buildInputs = [
go
gopls
];
};
};
}