hive: Add another test for nixpkgs.system

This commit is contained in:
Zhaofeng Li 2022-01-01 16:41:35 -08:00
parent 8f77184d58
commit 2b652f7236

View file

@ -281,6 +281,20 @@ fn test_nixpkgs_system() {
}; };
} }
"#); "#);
TempHive::valid(r#"
{
meta = {
nixpkgs = import <nixpkgs> {
system = "x86_64-linux";
};
};
test = { pkgs, ... }: {
nixpkgs.system = "armv5tel-linux";
boot.isContainer = assert pkgs.system == "armv5tel-linux"; true;
};
}
"#);
} }
#[test] #[test]