Commit Graph

24 Commits

Author SHA1 Message Date
be97641245
flake: exclude all non-go files
All checks were successful
continuous-integration/drone/push Build is passing
2022-07-08 18:19:46 +02:00
d2b5afe907
flake,ci: reenable GOPROXY var default
All checks were successful
continuous-integration/drone/push Build is passing
...mainly due to arbitrarily failing ci builds, as this doesn't appear
to affect local builds/nix builds on remote builders, just fresh builds
in the ci.
the explanation for why this is happening might be that certain package
VCS's don't allow many/frequent connections from IP ranges other than
GOPROXY's (Google's).
that is sheer speculation, though.
however, it is still true that there are "no" failed ci builds with
GOPROXY env var set to its default value (left untouched), which does
indeed indicate that the above mentioned might be the root cause of the
issue after all.

this commit reverts:
    * f3e481395e
and partially reverts:
    * 14ba7b18bf

GOPROXY=direct has been kept for `nix-shell`/`nix develop` environments
as that is not where it poses an issue.
2022-07-08 17:13:13 +02:00
f58122320b
flake: add ${projname} var instead of a literal
All checks were successful
continuous-integration/drone/push Build is passing
2022-07-07 22:47:43 +02:00
4c67075f5f
flake: set formatter (for all supported systems)
All checks were successful
continuous-integration/drone/push Build is passing
2022-06-13 23:28:52 +02:00
103bbfa528
flake(goModule): filter out non-pertinent files...
All checks were successful
continuous-integration/drone/push Build is passing
...such as flake files or {shell,default}.nix to reduce the necessity to
rebuild (when using `nix build`) after each change, even to non-go
files. more files can be added to an exclude list in the future.
2022-06-13 17:39:46 +02:00
14ba7b18bf
flake,go: use GOPROXY=direct
All checks were successful
continuous-integration/drone/push Build is passing
* both for the flake-provided shell environment and the flake-provided
  go module build env

inspired by:
  https://drewdevault.com/2022/05/25/Google-has-been-DDoSing-sourcehut.html
2022-06-01 16:49:46 +02:00
5e6f02a843
flake: comment out patchelf (for now)
All checks were successful
continuous-integration/drone/push Build is passing
2022-05-29 21:19:40 +02:00
9dab23ded7
go: add xkcd package
All checks were successful
continuous-integration/drone/push Build is passing
* utilise the john olheiser's neat xkcd package for comic fetching
  ref: gitea.com/jolheiser/xkcd
* add tests
* nix: bump module hash
2022-05-29 21:05:28 +02:00
2e13ad9faf
flake: add 'add-license' command
All checks were successful
continuous-integration/drone/push Build is passing
2022-05-21 22:05:36 +02:00
9f37caad91
flake: add 'upcache' command
All checks were successful
continuous-integration/drone/push Build is passing
easy way to push dev env to cachix
2022-05-21 19:41:43 +02:00
da71170af1
flake(shells): add ad-hoc cmds [skip ci] 2022-05-20 22:16:11 +02:00
fb0d215760
flake,go: add,use overlay.nix w/ patched Go
All checks were successful
continuous-integration/drone/push Build is passing
2022-05-20 19:52:31 +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
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
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
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
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
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
88f38822a6
flake: add flake-compat+default.nix+shell.nix 2022-04-26 15:08:36 +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