Merge pull request #250 from ryantm/noaliases

add new eval checker for the package list with allowAliases = false
This commit is contained in:
Graham Christensen 2018-10-15 14:57:26 -04:00 committed by GitHub
commit 85a3b3341e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -331,6 +331,19 @@ impl<E: stats::SysEvents + 'static> worker::SimpleWorker for MassRebuildWorker<E
self.nix.clone()
),
EvalChecker::new(
"package-list-no-aliases",
nix::Operation::QueryPackagesJSON,
vec![
String::from("--file"),
String::from("."),
String::from("--arg"),
String::from("config"),
String::from("{ allowAliases = false; }"),
],
self.nix.clone()
),
EvalChecker::new(
"nixos-options",
nix::Operation::Instantiate,