Files
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

60 lines
1.1 KiB
Nix

{
lib,
mkDerivation,
fetchFromGitHub,
cmake,
pkg-config,
qtbase,
qtgraphicaleffects,
wrapQtAppsHook,
udevCheckHook,
}:
mkDerivation rec {
pname = "projecteur";
version = "0.10";
src = fetchFromGitHub {
owner = "jahnf";
repo = "Projecteur";
rev = "v${version}";
fetchSubmodules = false;
hash = "sha256-F7o93rBjrDTmArTIz8RB/uGBOYE6ny/U7ppk+jEhM5A=";
};
postPatch = ''
sed '1i#include <array>' -i src/device.h # gcc12
'';
buildInputs = [
qtbase
qtgraphicaleffects
];
nativeBuildInputs = [
cmake
pkg-config
wrapQtAppsHook
udevCheckHook
];
doInstallCheck = true;
cmakeFlags = [
"-DCMAKE_INSTALL_PREFIX:PATH=${placeholder "out"}"
"-DPACKAGE_TARGETS=OFF"
"-DCMAKE_INSTALL_UDEVRULESDIR=${placeholder "out"}/lib/udev/rules.d"
];
meta = {
description = "Linux/X11 application for the Logitech Spotlight device (and similar devices)";
homepage = "https://github.com/jahnf/Projecteur";
license = lib.licenses.mit;
mainProgram = "projecteur";
maintainers = with lib.maintainers; [
benneti
];
platforms = lib.platforms.linux;
};
}