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 10, 2024
1 parent 8fbba9b commit 37f698b
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 flake.flakeMods).${moduleId}
else
flake.modules.${moduleId};
flake.flakeMods.${moduleId};
in
pkgs.stdenvNoCC.mkDerivation {
name = "replit-module-${moduleId}";
Expand Down

0 comments on commit 37f698b

Please sign in to comment.