Use Build Configs
This commit is contained in:
parent
882e428053
commit
0e55475d85
4 changed files with 23 additions and 5 deletions
2
.envrc
2
.envrc
|
@ -1 +1 @@
|
|||
use flake "git+https://code.oliverdavies.uk/opdavies/dev-shells#go"
|
||||
use flake
|
||||
|
|
4
build
4
build
|
@ -2,8 +2,4 @@
|
|||
|
||||
set -euo pipefail
|
||||
|
||||
echo "Building..."
|
||||
|
||||
go build -o zet cmd/zet/main.go
|
||||
|
||||
echo "Done."
|
||||
|
|
3
build-configs.yaml
Normal file
3
build-configs.yaml
Normal file
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
name: zet
|
||||
template: go-cobra-cli
|
19
flake.nix
Normal file
19
flake.nix
Normal 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
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue