diff --git a/flake.nix b/flake.nix index b315151..afb7e55 100644 --- a/flake.nix +++ b/flake.nix @@ -31,7 +31,7 @@ # flake provides only one package or there is a clear "main" # package. default = pkgs.buildGoModule { - pname = "go-hello"; + pname = "recount-server"; inherit version; # In 'nix develop', we don't need a copy of the source tree # in the Nix store. @@ -55,7 +55,7 @@ apps = forAllSystems (system: { default = { type = "app"; - program = "${self.packages.${system}.default}/bin/go-hello"; + program = "${self.packages.${system}.default}/bin/recount-server"; }; }); diff --git a/go.mod b/go.mod new file mode 100644 index 0000000..18fcc72 --- /dev/null +++ b/go.mod @@ -0,0 +1,3 @@ +module recount-server/recount-server + +go 1.16 diff --git a/recount-server.go b/recount-server.go new file mode 100644 index 0000000..c698732 --- /dev/null +++ b/recount-server.go @@ -0,0 +1,7 @@ +package main + +import "fmt" + +func main() { + fmt.Println("Hello World") +}