Files

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

43 lines
772 B
Nix
Raw Permalink Normal View History

2025-10-09 14:15:47 +02:00
{
lib,
mkKdeDerivation,
replaceVars,
sshfs,
qtconnectivity,
qtmultimedia,
qtwayland,
pkg-config,
wayland,
wayland-protocols,
libfakekey,
}:
mkKdeDerivation {
pname = "kdeconnect-kde";
patches = [
(replaceVars ./hardcode-sshfs-path.patch {
sshfs = lib.getExe sshfs;
})
];
# Hardcoded as a QString, which is UTF-16 so Nix can't pick it up automatically
postFixup = ''
mkdir -p $out/nix-support
echo "${sshfs}" > $out/nix-support/depends
'';
extraNativeBuildInputs = [ pkg-config ];
extraBuildInputs = [
qtconnectivity
qtmultimedia
qtwayland
wayland
wayland-protocols
libfakekey
];
extraCmakeFlags = [
"-DQtWaylandScanner_EXECUTABLE=${qtwayland}/libexec/qtwaylandscanner"
];
}