This commit is contained in:
NoryiE
2025-02-10 06:00:28 +00:00
parent b0a4a6da9c
commit 71a1fce096
2428 changed files with 0 additions and 1005324 deletions

View File

@@ -1,44 +0,0 @@
{
# dependencies
stdenv, fetchurl, nix-gitignore, buildGoModule,
# args
localFiles ? false
}:
buildGoModule rec {
pname = "hello";
version = "1.0";
src = (
if localFiles then
nix-gitignore.gitignoreSource [ "result" ] ./.
else
fetchurl {
url = "https://example.com";
sha256 = stdenv.lib.fakeSha256;
}
);
modSha256 = "1ggp6xhhlixihjx37v5j9gd3sa1gymqrglf9c3j1pwfnym1k99y3";
subPackages = [ "." ];
passthru = {
executable = "main";
};
meta = with stdenv.lib; {
description = "Hello world example in Go";
longDescription = ''
Long description for Hello world example in Go.
'';
homepage = https://blog.golang.org/using-go-modules;
license = licenses.asl20;
maintainers = [];
platforms = platforms.all;
};
}
# From https://github.com/vlktomas/nix-examples/tree/master/desktop/Go/hello