ipfs: use passthru for repoVersion

The `repoVersion` is only used outside the derivation and not for the build of IPFS itsef. This is exactly the use-case `passthru` was meant for.
It allows updating the `repoVersion` without rebuilding IPFS. This may come in handy if someone forgets to update it and it needs to be updated later.
This commit is contained in:
Luflosi 2022-07-06 18:59:02 +02:00
parent a836e72398
commit 7ff7f66643
No known key found for this signature in database
GPG Key ID: 4E41E29EDCC345D0

View File

@ -5,7 +5,7 @@ buildGoModule rec {
version = "0.13.0"; # When updating, also check if the repo version changed and adjust repoVersion below
rev = "v${version}";
repoVersion = "12"; # Also update ipfs-migrator when changing the repo version
passthru.repoVersion = "12"; # Also update ipfs-migrator when changing the repo version
# go-ipfs makes changes to it's source tarball that don't match the git source.
src = fetchurl {