gnome: Get rid of with

It can mask unknown variable errors.
This commit is contained in:
Jan Tojnar
2024-07-01 08:26:45 +02:00
parent bcfdf0252d
commit 8e1827acef
+6 -2
View File
@@ -1,7 +1,11 @@
{ config, pkgs, lib }:
# NOTE: New packages should generally go to top-level instead of here!
lib.makeScope pkgs.newScope (self: with self; {
lib.makeScope pkgs.newScope (self:
let
inherit (self) callPackage;
in
{
updateScript = callPackage ./update.nix { };
# Temporary helper until gdk-pixbuf supports multiple cache files.
@@ -9,7 +13,7 @@ lib.makeScope pkgs.newScope (self: with self; {
_gdkPixbufCacheBuilder_DO_NOT_USE = callPackage ./gdk-pixbuf-cache-builder.nix { };
libsoup = pkgs.libsoup.override { gnomeSupport = true; };
libchamplain = pkgs.libchamplain.override { libsoup = libsoup; };
libchamplain = pkgs.libchamplain.override { inherit (self) libsoup; };
# ISO installer
# installerIso = callPackage ./installer.nix {};