nixpkgs/pkgs/kde/gear/kdeconnect-kde/default.nix
K900 65f5cbb5f2 kdePackages: Gear 24.05.2 -> 24.08.0
- kweathercore to gear
- kipi removed
- knotes removed
- kgraphviewer and massif-visualizer added
- kdevelop and friends to qt6
2024-08-22 17:14:41 +03:00

37 lines
759 B
Nix

{
lib,
mkKdeDerivation,
substituteAll,
sshfs,
qtconnectivity,
qtmultimedia,
qtwayland,
pkg-config,
wayland,
wayland-protocols,
libfakekey,
}:
mkKdeDerivation {
pname = "kdeconnect-kde";
patches = [
(substituteAll {
src = ./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"
];
}