From 2b652f72368253d2dd652554528ed30453c2dd0d Mon Sep 17 00:00:00 2001 From: Zhaofeng Li Date: Sat, 1 Jan 2022 16:41:35 -0800 Subject: [PATCH] hive: Add another test for nixpkgs.system --- src/nix/hive/tests/mod.rs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/nix/hive/tests/mod.rs b/src/nix/hive/tests/mod.rs index 773c94b..417bac1 100644 --- a/src/nix/hive/tests/mod.rs +++ b/src/nix/hive/tests/mod.rs @@ -281,6 +281,20 @@ fn test_nixpkgs_system() { }; } "#); + + TempHive::valid(r#" + { + meta = { + nixpkgs = import { + system = "x86_64-linux"; + }; + }; + test = { pkgs, ... }: { + nixpkgs.system = "armv5tel-linux"; + boot.isContainer = assert pkgs.system == "armv5tel-linux"; true; + }; + } + "#); } #[test]