From 0c8beeac2fe7a771bd1ddae81d6737af470599de Mon Sep 17 00:00:00 2001 From: Whovian9369 Date: Fri, 22 Dec 2023 17:17:51 -0500 Subject: [PATCH] Fix outputting `vendorSha256` to `nix/vendor-sha256` (#266) * Fix outputting `vendorSha256` to `nix/vendor-sha256` * Add `nix/vendor-sha256` to make tools like `nix run` happy. --- nix/prefetcher.nix | 8 +++++++- nix/vendor-sha256 | 1 + 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/nix/prefetcher.nix b/nix/prefetcher.nix index 3f8fb2d..5362219 100644 --- a/nix/prefetcher.nix +++ b/nix/prefetcher.nix @@ -3,7 +3,13 @@ pkgs ? import {}, }: pkgs.callPackage (import ./.) { - buildGoModule = pkgs.buildGo118Module; + ## 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; vendorSha256 = sha256; } // { diff --git a/nix/vendor-sha256 b/nix/vendor-sha256 index e69de29..b59ccb9 100644 --- a/nix/vendor-sha256 +++ b/nix/vendor-sha256 @@ -0,0 +1 @@ +sha256-yL5pWbVqf6mEpgYsItLnv8nwSmoMP+SE0rX/s7u2vCg=