Skip to content

Commit bd7576c

Browse files
committed
Simplify overlay definition and fix system reference
Remove unnecessary let-binding and intermediate variable. Fix overlay to properly reference the current system's package instead of using the flake's packages attribute directly.
1 parent 2110eeb commit bd7576c

File tree

1 file changed

+6
-16
lines changed

1 file changed

+6
-16
lines changed

flake.nix

Lines changed: 6 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -148,20 +148,10 @@
148148
checks.formatting = treefmtEval.config.build.check self;
149149
}
150150
)
151-
// (
152-
let
153-
overlay = (
154-
final: prev: {
155-
inherit (self.packages) leetcode-cli;
156-
}
157-
);
158-
in
159-
{
160-
# Overlays
161-
overlays = {
162-
default = overlay;
163-
leetcode-cli = overlay;
164-
};
165-
}
166-
);
151+
// {
152+
# Overlays
153+
overlays.default = final: prev: {
154+
leetcode-cli = self.packages.${final.system}.leetcode-cli;
155+
};
156+
};
167157
}

0 commit comments

Comments
 (0)