This commit is contained in:
NoryiE
2025-02-16 14:12:49 +00:00
parent c6a89e5b35
commit e0aeb9b06e
2737 changed files with 5220 additions and 1039045 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