Skip to content

Commit

Permalink
Dereferencing activeModules if available
Browse files Browse the repository at this point in the history
  • Loading branch information
blast-hardcheese committed Oct 11, 2024
1 parent a2ad64e commit 78d7030
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions pkgs/historical-modules/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -203,11 +203,16 @@ let
moduleFromHistory = { moduleId, commit, deployment ? false, overrides }:
let
flake = getFlake "github:replit/nixmodules/${commit}";
flakeMods =
if pkgs.lib.hasAttr "activeModules" flake then
flake.activeModules
else
flake.modules;
module =
if deployment then
(flake.deploymentModules or flake.modules).${moduleId}
(flake.deploymentModules or flakeMods).${moduleId}
else
flake.modules.${moduleId};
flakeMods.${moduleId};
in
pkgs.stdenvNoCC.mkDerivation {
name = "replit-module-${moduleId}";
Expand Down

0 comments on commit 78d7030

Please sign in to comment.