mirror of
https://github.com/packwiz/packwiz.git
synced 2025-04-18 20:46:30 +02:00
Add some notes to flake.nix
and nix/prefetcher.nix
Notes are to describe `pkgs.buildGoModule` mapping in Nixpkgs.
This commit is contained in:
parent
d3f58e025a
commit
23311218a1
@ -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;
|
||||
|
@ -3,13 +3,12 @@
|
||||
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;
|
||||
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;
|
||||
}
|
||||
// {
|
||||
|
Loading…
x
Reference in New Issue
Block a user