From f0462b777b2633aa0c85989a48ba43fdf9bdafd5 Mon Sep 17 00:00:00 2001 From: surtur Date: Tue, 26 Apr 2022 14:52:34 +0200 Subject: [PATCH] readme: add instructions on how to build project includes building using: * nix flake functionality ('nix develop'+the go tool provided by nix) * just the go tool --- README.md | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/README.md b/README.md index e590386..e39a82d 100644 --- a/README.md +++ b/README.md @@ -5,5 +5,30 @@ ### disclaimer WIP :construction: +### ad nix flake ❄ +this project is provided as a **nix flake** for both convenience and +reproducibility. +and also because I wanted to play with `nix` and its flakes just a wee bit. + +> *note on the nix-related steps*: make sure you have +> [`nix`](https://nixos.org/learn.html) installed and optionally the flake +> functionality enabled, the Go toolchain and a minimal set of Go development +> goodies will get pulled in automatically. + +that means you can get started: +### developing using nix (flakes enabled) +run `nix develop` in the project folder *first*, then `go {run,build,fmt,...}` +about your day. + +### developing without nix +> *note*: you only need to have the Go toolchain and [Fyne +> dependencies](https://developer.fyne.io/started/#prerequisites) installed for +> this. + +if you don't want to use the flake provided or don't have `nix` installed, you +can use the standard `go` tool: +run `go {run,build,fmt,...}` in the project folder. + + ### COPYING Licensed under GPL-3.0-or-later (see [LICENSE](LICENSE) for details).