wprs: Fix missing runtime py dep. (#352029)

This commit is contained in:
Aleksana 2024-10-30 11:09:56 +08:00 committed by GitHub
commit 18f985d962
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -5,9 +5,10 @@
pkg-config,
libxkbcommon,
python3,
python3Packages,
runCommand,
wprs,
}:
rustPlatform.buildRustPackage rec {
rustPlatform.buildRustPackage {
pname = "wprs";
version = "0-unstable-2024-10-22";
@ -24,9 +25,7 @@ rustPlatform.buildRustPackage rec {
buildInputs = [
libxkbcommon
python3
python3Packages.psutil
(python3.withPackages (pp: with pp; [ psutil ]))
];
cargoLock = {
@ -43,6 +42,10 @@ rustPlatform.buildRustPackage rec {
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;