From 08740e846f6f4ee0c2d28d74788f32847347d04c Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Thu, 16 Mar 2023 11:47:18 +0000 Subject: [PATCH] pkgs: diff-flake: quote attribute names Since we don't know if they contain `.` or other characters that might need quoting. --- pkgs/diff-flake/diff-flake | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/diff-flake/diff-flake b/pkgs/diff-flake/diff-flake index 2dfc67d..f3b41d6 100755 --- a/pkgs/diff-flake/diff-flake +++ b/pkgs/diff-flake/diff-flake @@ -26,15 +26,15 @@ current_system() { add_shell() { # Use 'inputDerivation' attribute to make sure that it is build-able - FLAKE_OUTPUTS+=("devShells.$(current_system).\"$1\".inputDerivation") + FLAKE_OUTPUTS+=("devShells.\"$(current_system)\".\"$1\".inputDerivation") } add_home() { - FLAKE_OUTPUTS+=("homeConfigurations.$1.activationPackage") + FLAKE_OUTPUTS+=("homeConfigurations.\"$1\".activationPackage") } add_host() { - FLAKE_OUTPUTS+=("nixosConfigurations.$1.config.system.build.toplevel") + FLAKE_OUTPUTS+=("nixosConfigurations.\"$1\".config.system.build.toplevel") } usage() { @@ -151,7 +151,7 @@ list_nixos_configurations() { } list_dev_shells() { - nix eval ".#devShells.$(current_system)" \ + nix eval ".#devShells.\"$(current_system)\"" \ --apply 'attrs: with builtins; concatStringsSep "\n" (attrNames attrs)' \ --raw }