From 7a2804b6203d9f47e3dde2affa4b5599ce97a12e Mon Sep 17 00:00:00 2001 From: Nickiel12 Date: Sun, 17 Dec 2023 21:21:29 -0800 Subject: [PATCH] basic go package --- flake.nix | 4 ++-- go.mod | 3 +++ recount-server.go | 7 +++++++ 3 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 go.mod create mode 100644 recount-server.go 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") +}