depot/third_party/nixpkgs/pkgs/kde/gear/spectacle/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

20 lines
587 B
Nix

{
mkKdeDerivation,
qtwayland,
qtmultimedia,
opencv,
}:
mkKdeDerivation {
pname = "spectacle";
extraBuildInputs = [
qtwayland
qtmultimedia
(opencv.override {
enableCuda = false; # fails to compile, disabled in case someone sets config.cudaSupport
enabledModules = [ "core" "imgproc" ]; # https://invent.kde.org/graphics/spectacle/-/blob/master/CMakeLists.txt?ref_type=heads#L83
runAccuracyTests = false; # tests will fail because of missing plugins but that's okay
})
];
meta.mainProgram = "spectacle";
}