fix: use the right nixpkgs when consuming overlays

This commit is contained in:
Jake Hamilton 2022-09-09 01:41:20 -07:00
parent 13cd056669
commit 6ed0b9f668
No known key found for this signature in database
GPG key ID: 9762169A1B35EA68
4 changed files with 24 additions and 11 deletions

View file

@ -17,13 +17,14 @@ in
create-packages =
{ channels
, src ? user-packages-root
, pkgs ? channels.nixpkgs
, overrides ? { }
}:
let
user-packages = snowfall-lib.fs.get-default-nix-files-recursive src;
create-package-metadata = package: {
name = builtins.unsafeDiscardStringContext (snowfall-lib.path.get-parent-directory package);
drv = channels.nixpkgs.callPackage package {
drv = pkgs.callPackage package {
inherit channels;
lib = snowfall-lib.internal.system-lib;
};