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