diff --git a/.gitignore b/.gitignore index 4d6e003..4ee9af4 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /reaction.db +/result diff --git a/default.nix b/default.nix new file mode 100644 index 0000000..b40c8f7 --- /dev/null +++ b/default.nix @@ -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="; +} diff --git a/daemon.go b/reaction/main.go similarity index 100% rename from daemon.go rename to reaction/main.go diff --git a/cli.go b/reactionc/main.go similarity index 100% rename from cli.go rename to reactionc/main.go