Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 42 lines 772 B view raw
1{ 2 lib, 3 mkKdeDerivation, 4 replaceVars, 5 sshfs, 6 qtconnectivity, 7 qtmultimedia, 8 qtwayland, 9 pkg-config, 10 wayland, 11 wayland-protocols, 12 libfakekey, 13}: 14mkKdeDerivation { 15 pname = "kdeconnect-kde"; 16 17 patches = [ 18 (replaceVars ./hardcode-sshfs-path.patch { 19 sshfs = lib.getExe sshfs; 20 }) 21 ]; 22 23 # Hardcoded as a QString, which is UTF-16 so Nix can't pick it up automatically 24 postFixup = '' 25 mkdir -p $out/nix-support 26 echo "${sshfs}" > $out/nix-support/depends 27 ''; 28 29 extraNativeBuildInputs = [ pkg-config ]; 30 extraBuildInputs = [ 31 qtconnectivity 32 qtmultimedia 33 qtwayland 34 wayland 35 wayland-protocols 36 libfakekey 37 ]; 38 39 extraCmakeFlags = [ 40 "-DQtWaylandScanner_EXECUTABLE=${qtwayland}/libexec/qtwaylandscanner" 41 ]; 42}