From 9e67978f6eaacb75e7aacb5a3d384b525314dc14 Mon Sep 17 00:00:00 2001 From: Giulio De Pasquale Date: Tue, 14 Feb 2023 17:20:55 +0100 Subject: [PATCH] flake: Inherit scope utilities in wrapUtils --- flake.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index a8e9d70..ef01d73 100644 --- a/flake.nix +++ b/flake.nix @@ -32,7 +32,11 @@ }; wrapUtils = { pkgs, unstable, system }: - pkgs.lib.makeScope pkgs.newScope (self: { + let + inherit (pkgs.lib) makeScope; + inherit (pkgs) newScope; + in + makeScope newScope (self: { inherit nixpkgs home-manager nixos-unstable; user = self.callPackage ./lib/user.nix { }; host = self.callPackage ./lib/host.nix { };