update go flake

This commit is contained in:
Antoine Langlois 2024-03-17 22:05:29 +01:00
parent 45cdfd662e
commit 78e015bc8e
Signed by: DataHearth
GPG Key ID: 946E2D0C410C7B3D
5 changed files with 17 additions and 2 deletions

1
go/.envrc Normal file
View File

@ -0,0 +1 @@
use flake

View File

@ -6,7 +6,9 @@
outputs = { nixpkgs, flake-utils, ... }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = nixpkgs.legacyPackages.${system};
pkgs = import nixpkgs {
inherit system;
};
in
{
devShells.default = pkgs.mkShell {

3
go/go.mod Normal file
View File

@ -0,0 +1,3 @@
module gitea.antoine-langlois.net/datahearth/package
go 1.21.7

7
go/main.go Normal file
View File

@ -0,0 +1,7 @@
package main
import "fmt"
func main() {
fmt.Println("Hello, World!")
}

View File

@ -6,7 +6,9 @@
outputs = { nixpkgs, flake-utils, ... }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = nixpkgs.legacyPackages.${system};
pkgs = import nixpkgs {
inherit system;
};
in
{
devShells.default = pkgs.mkShell {