From 10b718fff30a0b5d59a6c260d55460f328fe1501 Mon Sep 17 00:00:00 2001 From: Wroclaw Date: Sun, 7 Jul 2024 09:08:49 +0200 Subject: [PATCH] pkgs/overlays/selfExpr: add missing parentheses in generated nix code --- pkgs/overlays/selfExpr.nix | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/pkgs/overlays/selfExpr.nix b/pkgs/overlays/selfExpr.nix index ae28729..4dd0312 100644 --- a/pkgs/overlays/selfExpr.nix +++ b/pkgs/overlays/selfExpr.nix @@ -25,11 +25,13 @@ self: super: { in '' { ... } @ args: - import ${nixpkgsPath} { - ${self.lib.optionalString useConfig configText} - } // builtins.removeAttrs args (builtins.fromJSON ''' - ${removedAttrNamesText} - ''') + import ${nixpkgsPath} ( + { + ${self.lib.optionalString useConfig configText} + } // builtins.removeAttrs args (builtins.fromJSON ''' + ${removedAttrNamesText} + ''') + ) ''; mkNixpkgsChannel = args: self.writeTextFile {