Standardize go project structure

This commit is contained in:
ppom 2023-05-05 12:53:10 +02:00
parent b40a5dc91f
commit addff0f3c1
4 changed files with 19 additions and 0 deletions

1
.gitignore vendored
View file

@ -1 +1,2 @@
/reaction.db
/result

18
default.nix Normal file
View file

@ -0,0 +1,18 @@
{ buildGoModule, fetchFromGitLab }:
let
pname = "reaction";
version = "v0.1";
in buildGoModule {
inherit pname version;
src = ./.;
# src = fetchFromGitLab {
# domain = "framagit.org";
# owner = "ppom";
# repo = pname;
# rev = version;
# sha256 = "sha256-45ytTNZIbTIUOPBgAdD7o9hyWlJo//izUhGe53PcwNA=";
# };
vendorHash = "sha256-g+yaVIx4jxpAQ/+WrGKxhVeliYx7nLQe/zsGpxV4Fn4=";
}