From 2a4e559fcff8766ed0a2d24012b8d5ae177ca95a Mon Sep 17 00:00:00 2001 From: Artturin Date: Thu, 21 Apr 2022 00:49:16 +0300 Subject: [PATCH] disallow aliases in the nixpkgs-tarball eval this allows ofborg to still check the aliases.nix file for errors unlike https://github.com/NixOS/ofborg/pull/594 which would have disabled aliases in outpaths.nix errors in the alias.nix file are caught by outpaths.nix eval so we can disable aliases here --- ofborg/src/tasks/eval/nixpkgs.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ofborg/src/tasks/eval/nixpkgs.rs b/ofborg/src/tasks/eval/nixpkgs.rs index 7b0edaf..833f42d 100644 --- a/ofborg/src/tasks/eval/nixpkgs.rs +++ b/ofborg/src/tasks/eval/nixpkgs.rs @@ -529,6 +529,9 @@ impl<'a> EvaluationStrategy for NixpkgsStrategy<'a> { String::from("--arg"), String::from("nixpkgs"), nixpkgs_arg_value.clone(), + String::from("--arg"), + String::from("config"), + String::from("{ allowAliases = false; }"), String::from("./pkgs/top-level/release.nix"), String::from("-A"), String::from("tarball"),