diff --git a/flake-info/src/commands/flake_info.nix b/flake-info/src/commands/flake_info.nix index 6c67aa7..520553b 100644 --- a/flake-info/src/commands/flake_info.nix +++ b/flake-info/src/commands/flake_info.nix @@ -75,7 +75,7 @@ let applyOnAttr = n: f: lib.optionalAttrs (lib.hasAttr n opt) { ${n} = f opt.${n}; }; mkDeclaration = decl: let - discard = lib.concatStringsSep "/" (lib.take 4 (lib.splitString "/" decl)); + discard = lib.concatStringsSep "/" (lib.take 4 (lib.splitString "/" decl)) + "/"; path = if lib.hasPrefix builtins.storeDir decl then lib.removePrefix discard decl else decl; in path;