packwiz/nix/prefetcher.nix
Whovian9369 0c8beeac2f
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.
2023-12-22 22:17:51 +00:00

18 lines
512 B
Nix

{
sha256,
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;
vendorSha256 = sha256;
}
// {
outputHash = sha256;
}