Skip to content

Commit 18f985d

Browse files
authored
wprs: Fix missing runtime py dep. (#352029)
2 parents f26f4e2 + fe815c1 commit 18f985d

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

pkgs/by-name/wp/wprs/package.nix

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@
55
pkg-config,
66
libxkbcommon,
77
python3,
8-
python3Packages,
8+
runCommand,
9+
wprs,
910
}:
10-
rustPlatform.buildRustPackage rec {
11+
rustPlatform.buildRustPackage {
1112
pname = "wprs";
1213
version = "0-unstable-2024-10-22";
1314

@@ -24,9 +25,7 @@ rustPlatform.buildRustPackage rec {
2425

2526
buildInputs = [
2627
libxkbcommon
27-
python3
28-
python3Packages.psutil
29-
28+
(python3.withPackages (pp: with pp; [ psutil ]))
3029
];
3130

3231
cargoLock = {
@@ -43,6 +42,10 @@ rustPlatform.buildRustPackage rec {
4342
cp wprs "$out/bin/wprs"
4443
'';
4544

45+
passthru.tests.sanity = runCommand "wprs-sanity" { nativeBuildInputs = [ wprs ]; } ''
46+
${wprs}/bin/wprs -h > /dev/null && touch $out
47+
'';
48+
4649
meta = with lib; {
4750
description = "rootless remote desktop access for remote Wayland";
4851
license = licenses.asl20;

0 commit comments

Comments
 (0)