From 6fe48ccd049459d046742e5e6ac3856396d1a3eb Mon Sep 17 00:00:00 2001 From: Wanja Hentze Date: Thu, 2 Jun 2022 16:39:45 -0700 Subject: [PATCH] nix-eval-jobs: Strip quotes surrounding attribute names Fixes #92. --- src/nix/evaluator/nix_eval_jobs.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/nix/evaluator/nix_eval_jobs.rs b/src/nix/evaluator/nix_eval_jobs.rs index a8a239d..918a914 100644 --- a/src/nix/evaluator/nix_eval_jobs.rs +++ b/src/nix/evaluator/nix_eval_jobs.rs @@ -185,7 +185,11 @@ impl Default for NixEvalJobs { impl From for AttributeOutput { fn from(eld: EvalLineDerivation) -> Self { Self { - attribute: eld.attribute, + // nix-eval-jobs adds surrounding quotes for attribute names + // with dots: + // + // + attribute: eld.attribute.trim_matches('"').to_string(), drv_path: eld.drv_path, } }