From 7ff7f6664328a8ce9f4c5f68f21d63d48247516d Mon Sep 17 00:00:00 2001 From: Luflosi Date: Wed, 6 Jul 2022 18:59:02 +0200 Subject: [PATCH] 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. --- pkgs/applications/networking/ipfs/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/applications/networking/ipfs/default.nix b/pkgs/applications/networking/ipfs/default.nix index 68b68a93ba79e..243cf17a8d5fe 100644 --- a/pkgs/applications/networking/ipfs/default.nix +++ b/pkgs/applications/networking/ipfs/default.nix @@ -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 {