1 { lib, stdenv, fetchFromGitLab, python3 }:
3 pythonEnv = python3.withPackages (p: with p; [ dbus-python pygobject3 ]);
5 stdenv.mkDerivation rec {
9 src = fetchFromGitLab {
13 hash = "sha256-rFTTvmetDeN6t0axVc+8t1TRiuyPBpwqhvsq2IFxa/A=";
17 sed -e "s|Exec=.*|Exec=$out/libexec/runner.py|" -i ssh-runner.service
27 patchShebangs runner.py
29 install -m 0755 -D runner.py $out/libexec/runner.py
30 install -m 0755 -D ssh-runner.desktop $out/share/kservices5/ssh-runner.desktop
31 install -m 0755 -D ssh-runner.service $out/share/dbus-1/services/com.selfcoders.ssh-runner.service
37 description = "Simple backend for KRunner providing SSH hosts from your .ssh/known_hosts file as search results";
38 homepage = "https://selfcoders.com/projects/krunner-ssh";
39 license = licenses.mit;
40 maintainers = with maintainers; [ aanderse ];
41 platforms = platforms.linux;