From cda5aa2ac77a70bb5660d8d5614a640aacbe7523 Mon Sep 17 00:00:00 2001 From: Lily Foster Date: Wed, 14 Jun 2023 13:09:41 -0400 Subject: [PATCH] eval/nixpkgs: eval package list once with aliases --- ofborg/src/tasks/eval/nixpkgs.rs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/ofborg/src/tasks/eval/nixpkgs.rs b/ofborg/src/tasks/eval/nixpkgs.rs index b25c2e8..7f49b5c 100644 --- a/ofborg/src/tasks/eval/nixpkgs.rs +++ b/ofborg/src/tasks/eval/nixpkgs.rs @@ -444,6 +444,18 @@ impl<'a> EvaluationStrategy for NixpkgsStrategy<'a> { vec![String::from("--file"), String::from(".")], self.nix.clone(), ), + EvalChecker::new( + "package-list-with-aliases", + nix::Operation::QueryPackagesJson, + vec![ + String::from("--file"), + String::from("."), + String::from("--arg"), + String::from("config"), + String::from("{ allowAliases = true; }"), + ], + self.nix.clone(), + ), EvalChecker::new( "lib-tests", nix::Operation::Build,