Skip to content

Commit

Permalink
ipfs: use passthru for repoVersion
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Luflosi committed Jul 10, 2022
1 parent a836e72 commit 7ff7f66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkgs/applications/networking/ipfs/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 7ff7f66

Please sign in to comment.