diff --git a/flake.nix b/flake.nix index 7c4fc7f..0cb1692 100644 --- a/flake.nix +++ b/flake.nix @@ -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; diff --git a/nix/prefetcher.nix b/nix/prefetcher.nix index 5362219..18ee3f6 100644 --- a/nix/prefetcher.nix +++ b/nix/prefetcher.nix @@ -3,13 +3,12 @@ pkgs ? import {}, }: 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; } // {