added comments to explain need help with one section marked TODO

This commit is contained in:
specCon18 2025-06-21 03:55:37 -04:00
parent f098443518
commit dab2edce05
2 changed files with 11 additions and 7 deletions

View file

@ -1,6 +1,9 @@
{ buildGoModule, gitMinimal }:
# This is the wrapping around mkderivation that abstracts away the standard boilerplate logic for building go packages.
buildGoModule {
# The final built binary name.
pname = "go-hello";
# The binary version | NEEDS TO BE IN STEP WITH GO MOD.
version = "v1.0.0";
# In 'nix develop', we don't need a copy of the source tree
# in the Nix store.
@ -8,8 +11,10 @@ buildGoModule {
name = "source";
path = ./.;
};
vendorHash = null;
# required deps for build time nativeBuildInputs are runtime deps
buildInputs = [
# Just an example input
gitMinimal
];
# This hash locks the dependencies of this package. It is
@ -21,5 +26,5 @@ buildGoModule {
# To begin with it is recommended to set this, but one must
# remember to bump this hash when your dependencies change.
# vendorHash = pkgs.lib.fakeHash;
vendorHash = null;
}