2025-09-30 17:54:36 -07:00
|
|
|
{ self, lib, rust-overlay }:
|
|
|
|
let rustPackageOverlay = import ./rust-package.nix;
|
|
|
|
in {
|
2025-09-30 12:46:50 -07:00
|
|
|
default = lib.composeManyExtensions [
|
|
|
|
# This is to ensure that other overlays and invocations of `callPackage`
|
|
|
|
# receive `rust-bin`, but without hard-coding a specific derivation.
|
|
|
|
# This can be overridden by consumers.
|
|
|
|
self.overlays.rust-overlay
|
2025-09-30 17:54:36 -07:00
|
|
|
|
|
|
|
# Packages provided by this flake:
|
|
|
|
self.overlays.noita-proxy
|
2025-09-30 12:46:50 -07:00
|
|
|
];
|
|
|
|
|
|
|
|
# This flake exposes `overlays.rust-overlay` which is automatically applied
|
|
|
|
# by `overlays.default`. This overlay is intended to provide `rust-bin` for
|
|
|
|
# the package overlay, in the event it is not already present.
|
|
|
|
rust-overlay = final: prev:
|
|
|
|
if prev ? rust-bin then { } else rust-overlay.overlays.default final prev;
|
2025-09-30 17:54:36 -07:00
|
|
|
|
|
|
|
# The overlay definition uses `rust-bin` to construct a `rustPlatform`,
|
|
|
|
# and `rust-bin` is not provided by this particular overlay.
|
|
|
|
# Prefer using `overlays.default`, or composing with `rust-overlay` manually.
|
|
|
|
noita-proxy = rustPackageOverlay {
|
|
|
|
packageName = "noita-proxy";
|
|
|
|
sourceRoot = self;
|
|
|
|
};
|
2025-09-30 12:46:50 -07:00
|
|
|
}
|