Skip to content

Commit

Permalink
fix: replace rec with let-in
Browse files Browse the repository at this point in the history
* `rec` is slow and has a lot of downsides; replace with `let-in`
  expression to avoid other strange issues what I was facing

Resolves:
Related:
Signed-off-by: Daniel-Andrei Minca <[email protected]>
  • Loading branch information
dminca committed Jul 7, 2024
1 parent 171d735 commit 93a0ab5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions overlays/kluctl/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@

(final: prev: {
kluctl = prev.kluctl.override {
buildGoModule = previousArgs: prev.buildGoModule (previousArgs // rec {
buildGoModule = previousArgs: let self = prev.buildGoModule (previousArgs // {
version = "2.25.0";
src = prev.fetchFromGitHub {
owner = "kluctl";
repo = "kluctl";
rev = "refs/tags/v${version}";
rev = "refs/tags/v${self.version}";
hash = "sha256-WtTBkc9mop+bfMcVLI8k4Bqmift5JG9riF+QbDeiR9c=";
};
});
}); in self;
};
})

0 comments on commit 93a0ab5

Please sign in to comment.