Add some notes to flake.nix and nix/prefetcher.nix

Notes are to describe `pkgs.buildGoModule` mapping in Nixpkgs.
This commit is contained in:
Whovian9369 2023-12-22 21:23:57 -05:00
parent d3f58e025a
commit 23311218a1
2 changed files with 7 additions and 6 deletions

View File

@ -33,6 +33,8 @@
version = substring 0 8 self.rev or "dirty";
vendorSha256 = readFile ./nix/vendor-sha256;
buildGoModule = pkgs.buildGoModule;
# As of writing, `pkgs.buildGoModule` is aliased to
# `pkgs.buildGo121Module` in Nixpkgs.
};
# Build packwiz by default when no package name is specified
default = packwiz;

View File

@ -3,13 +3,12 @@
pkgs ? import <nixpkgs> {},
}:
pkgs.callPackage (import ./.) {
## Keeping `buildGoModule` commented out in case it's needed in the future.
## As of writing, `buildGo121Module` is currently used as the default for
## `buildGoModule` in nixpkgs. `buildGo118Module` seems deprecated and
## entirely removed from nixpkgs, so manually setting that is likely to cause
## issues in the future.
# buildGoModule = pkgs.buildGo118Module;
buildGoModule = pkgs.buildGoModule;
## As of writing, `pkgs.buildGoModule` is aliased to
## `pkgs.buildGo121Module` in Nixpkgs.
## `buildGoModule` is set as `pkgs.buildGoModule` to try and work around
## `vendorHash` issues in the future.
vendorSha256 = sha256;
}
// {