depot/third_party/nixpkgs/pkgs/kde/gear/kdeconnect-kde/default.nix
Default email 7e47f3658e Project import generated by Copybara.
GitOrigin-RevId: 1925c603f17fc89f4c8f6bf6f631a802ad85d784
2024-09-26 11:04:55 +00:00

43 lines
789 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"
];
}