Commit Graph

76 Commits

Author SHA1 Message Date
a16bd3ef48
ci,pre-commit: rename 'nix-build' to 'nix build'..
All checks were successful
continuous-integration/drone/push Build is passing
to reflect command's flake nature. nix-build actually uses default.nix -
legacy way of building stuff.
2022-05-16 13:56:26 +02:00
e06e6f4076
fix cmd behaviour for early exit
All checks were successful
continuous-integration/drone/push Build is passing
2022-05-15 11:27:48 +02:00
c335867935
readme: add {godocsreference,goreportcard} badges
also bump version: v0.0.0 -> v0.0.12

[skip ci]
2022-05-13 23:06:21 +02:00
0010ddd9e9
add .gitattributes [skip ci] 2022-05-13 22:59:17 +02:00
0d3765e0d9
add .pre-commit-config.yaml [skip ci] 2022-05-13 22:58:09 +02:00
ecfb129096
main: add more tests
All checks were successful
continuous-integration/drone/push Build is passing
2022-05-13 22:41:31 +02:00
44c2a69e9d
ignore {.drone.{star,yml},*.out} files [skip ci] 2022-05-13 22:36:41 +02:00
4b6e655ebf
use github.com/spf13/cobra for app cmds
All checks were successful
continuous-integration/drone/push Build is passing
* add 'version' command - "go-xkcdreader version" returns a formatted
  version of the app
* test (among other things) that the version in flake.nix matches the
  version hardcoded in app's go code (cmd/version.go)
2022-05-12 15:54:16 +02:00
f009bb2cc1
embed Version string in app
All checks were successful
continuous-integration/drone/push Build is passing
* print version on app startup
2022-05-10 20:41:06 +02:00
c05fc6c995
app: add test for a greeting message
All checks were successful
continuous-integration/drone/push Build is passing
* provide app greeting using a function
* test that the app greets properly

* run tests for nix with 'nix-shell --run'...
2022-05-07 00:31:44 +02:00
bc1542012b
ignore go-compiled binary [skip ci] 2022-05-06 22:40:53 +02:00
cb391e3851
direnv: add add_extra_vimrc hook [skip ci]
* also provide .vimrc-example, it  would be picked up when renamed to
  plain .vimrc
* also add .vimrc to .gitignore as there this .vimrc is supposed to have
  personal editor configurations (it doesn't have to but I am not going
  to impose editor configs on anyone, hence if anyone uses it, it's
  personal)
2022-05-08 20:16:46 +02:00
2e7d3cf1b1
flake: build checks are only relevant with DISPLAY
All checks were successful
continuous-integration/drone/push Build is passing
2022-05-06 22:29:17 +02:00
194328118b
ci: add .drone.starlark
All checks were successful
continuous-integration/drone/push Build is passing
also add build status badge to README.md (very important)

---
Squashed commit of the following:

commit 226f181e6dded95357cf3e31c918e811bc6b9bae
Author: surtur <a_mirre@utb.cz>
Date:   Wed May 4 16:37:08 2022 +0200

    ci: add .drone.starlark

    also add build status badge to README.md
2022-05-06 22:25:38 +02:00
938f8189cb
go,flake: add a fyne window,nixGL overlay,deps,fmt
* reformat the flake
* create a fyne application, specify deps as both buildGoModule
  buildInputs and packages in devShells
* add nixGL overlay to devShells so that openGL-based apps (such as fyne
  apps) run fine for non-NixOS users
* add build/link flags
2022-05-03 20:22:43 +02:00
32dd993607
readme: add cachix label and instructions 2022-05-03 19:18:22 +02:00
0cea753c38
add check-fmt convenience script 2022-05-03 18:22:48 +02:00
d0201747ae
flake: switch to nixpkgs-unstable 2022-05-02 14:39:31 +02:00
4180e82e2f
flake: nixpkgs-fmt . 2022-04-27 02:56:01 +02:00
7fd07f6dfe
flake: format inputs+lockfile 2022-04-27 02:23:31 +02:00
2ae440ec61
readme: add "built with nix" badge 2022-04-26 21:32:50 +02:00
c5ebbc7eb2
set up direnv 2022-04-26 16:29:31 +02:00
88f38822a6
flake: add flake-compat+default.nix+shell.nix 2022-04-26 15:08:36 +02:00
f0462b777b
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
2022-04-26 14:52:34 +02:00
7d6a0158e5
flake: fix support for Nix 2.8 and beyond 2022-04-26 13:51:11 +02:00
fc9b901759
initial commit 2022-03-12 10:29:25 +01:00