mirror of
https://github.com/packwiz/packwiz.git
synced 2025-08-20 23:16:31 +02:00
Since nix tries to update inputs on newer versions out of, I suppose, some introduced incompatibility, `nix build` fails. And nixpkgs from 2023 sounds rather obsolete at this point, so update was kinda due I think. On newer versions of nixpkgs however buildGoModule has changed and requires one of its arguments to be called vendorHash and not vendorSha256, this patch changes that as well. Fixes #297, closes #314, closes #307
17 lines
390 B
Nix
17 lines
390 B
Nix
{
|
|
sha256,
|
|
pkgs ? import <nixpkgs> {},
|
|
}:
|
|
pkgs.callPackage (import ./.) {
|
|
|
|
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.
|
|
vendorHash = sha256;
|
|
}
|
|
// {
|
|
outputHash = sha256;
|
|
}
|