Skip to content

Commit f10a3aa

Browse files
committed
[Chore] Fix overlay
Problem: In my recent PR(#264), I accidentally picked overlay output changes from the philtaken/nixos-vm-tests branch, which broke existing overlay imports after updating the deploy-rs input. Solution: Add backwards compatibility so that users don't have to make changes to their nix flakes.
1 parent 2bad218 commit f10a3aa

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ In the above configuration, `deploy-rs` is built from the flake, not from nixpkg
9999
deployPkgs = import nixpkgs {
100100
inherit system;
101101
overlays = [
102-
deploy-rs.overlay
102+
deploy-rs.overlay # or deploy-rs.overlays.default
103103
(self: super: { deploy-rs = { inherit (pkgs) deploy-rs; lib = super.deploy-rs.lib; }; })
104104
];
105105
};

flake.nix

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
};
1717

1818
outputs = { self, nixpkgs, utils, ... }@inputs:
19-
{
20-
overlays.default = final: prev: let
19+
rec {
20+
overlay = final: prev: let
2121
system = final.stdenv.hostPlatform.system;
2222
darwinOptions = final.lib.optionalAttrs final.stdenv.isDarwin {
2323
buildInputs = with final.darwin.apple_sdk.frameworks; [
@@ -147,6 +147,7 @@
147147
};
148148
};
149149
};
150+
overlays.default = overlay;
150151
} //
151152
utils.lib.eachSystem (utils.lib.defaultSystems ++ ["aarch64-darwin"]) (system:
152153
let

0 commit comments

Comments
 (0)