mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-11-06 18:26:45 +01:00
25bef2d8f9
The library does not depend on stdenv, that `stdenv` exposes `lib` is an artifact of the ancient origins of nixpkgs.
27 lines
690 B
Nix
27 lines
690 B
Nix
import ./make-test-python.nix ({ pkgs, ... }: {
|
|
name = "packagekit";
|
|
meta = with pkgs.lib.maintainers; {
|
|
maintainers = [ peterhoeg ];
|
|
};
|
|
|
|
machine = { ... }: {
|
|
environment.systemPackages = with pkgs; [ dbus ];
|
|
services.packagekit = {
|
|
enable = true;
|
|
backend = "test_nop";
|
|
};
|
|
};
|
|
|
|
testScript = ''
|
|
start_all()
|
|
|
|
# send a dbus message to activate the service
|
|
machine.succeed(
|
|
"dbus-send --system --type=method_call --print-reply --dest=org.freedesktop.PackageKit /org/freedesktop/PackageKit org.freedesktop.DBus.Introspectable.Introspect"
|
|
)
|
|
|
|
# so now it should be running
|
|
machine.wait_for_unit("packagekit.service")
|
|
'';
|
|
})
|