wprs: add sanity test.

This commit is contained in:
cdunder 2024-10-28 23:25:31 -07:00
parent 3e7fda332b
commit fe815c1b43

View File

@ -5,6 +5,8 @@
pkg-config,
libxkbcommon,
python3,
runCommand,
wprs,
}:
rustPlatform.buildRustPackage {
pname = "wprs";
@ -40,6 +42,10 @@ rustPlatform.buildRustPackage {
cp wprs "$out/bin/wprs"
'';
passthru.tests.sanity = runCommand "wprs-sanity" { nativeBuildInputs = [ wprs ]; } ''
${wprs}/bin/wprs -h > /dev/null && touch $out
'';
meta = with lib; {
description = "rootless remote desktop access for remote Wayland";
license = licenses.asl20;