mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-15 06:14:57 +01:00
19 lines
543 B
Nix
19 lines
543 B
Nix
import ./make-test-python.nix ({ pkgs, ... }: {
|
|
name = "kbd-update-search-paths-patch";
|
|
|
|
nodes.machine = { pkgs, options, ... }: {
|
|
console = {
|
|
packages = options.console.packages.default ++ [ pkgs.terminus_font ];
|
|
};
|
|
};
|
|
|
|
testScript = ''
|
|
command = "${pkgs.kbd}/bin/setfont ter-112n 2>&1"
|
|
(status, out) = machine.execute(command)
|
|
import re
|
|
pattern = re.compile(r".*Unable to find file:.*")
|
|
match = pattern.match(out)
|
|
if match:
|
|
raise Exception("command `{}` failed".format(command))
|
|
'';
|
|
})
|