blob: 0477985cc196d469f363ca0202fae979db8e2419 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
{ lib
, mkDerivation
, fetchFromGitHub
, cmake
, pkg-config
, qtbase
, qtgraphicaleffects
, wrapQtAppsHook
}:
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
];
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 drupol ];
platforms = lib.platforms.linux;
};
}
|