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.
This commit is contained in:
Whovian9369 2023-12-22 17:17:51 -05:00 committed by GitHub
parent 7e3ca8d9d5
commit 0c8beeac2f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 1 deletions

View File

@ -3,7 +3,13 @@
pkgs ? import <nixpkgs> {},
}:
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;
}
// {

View File

@ -0,0 +1 @@
sha256-yL5pWbVqf6mEpgYsItLnv8nwSmoMP+SE0rX/s7u2vCg=