basic go package
This commit is contained in:
parent
b4d484955f
commit
7a2804b620
3 changed files with 12 additions and 2 deletions
|
@ -31,7 +31,7 @@
|
||||||
# flake provides only one package or there is a clear "main"
|
# flake provides only one package or there is a clear "main"
|
||||||
# package.
|
# package.
|
||||||
default = pkgs.buildGoModule {
|
default = pkgs.buildGoModule {
|
||||||
pname = "go-hello";
|
pname = "recount-server";
|
||||||
inherit version;
|
inherit version;
|
||||||
# In 'nix develop', we don't need a copy of the source tree
|
# In 'nix develop', we don't need a copy of the source tree
|
||||||
# in the Nix store.
|
# in the Nix store.
|
||||||
|
@ -55,7 +55,7 @@
|
||||||
apps = forAllSystems (system: {
|
apps = forAllSystems (system: {
|
||||||
default = {
|
default = {
|
||||||
type = "app";
|
type = "app";
|
||||||
program = "${self.packages.${system}.default}/bin/go-hello";
|
program = "${self.packages.${system}.default}/bin/recount-server";
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
3
go.mod
Normal file
3
go.mod
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
module recount-server/recount-server
|
||||||
|
|
||||||
|
go 1.16
|
7
recount-server.go
Normal file
7
recount-server.go
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
package main
|
||||||
|
|
||||||
|
import "fmt"
|
||||||
|
|
||||||
|
func main() {
|
||||||
|
fmt.Println("Hello World")
|
||||||
|
}
|
Loading…
Reference in a new issue