fork
Configure Feed
Select the types of activity you want to include in your feed.
lol
fork
Configure Feed
Select the types of activity you want to include in your feed.
1{ lib
2, mkDerivation
3, fetchFromGitHub
4, cmake
5, pkg-config
6, qtbase
7, qtgraphicaleffects
8, wrapQtAppsHook
9}:
10
11mkDerivation rec {
12 pname = "projecteur";
13 version = "0.10";
14
15 src = fetchFromGitHub {
16 owner = "jahnf";
17 repo = "Projecteur";
18 rev = "v${version}";
19 fetchSubmodules = false;
20 hash = "sha256-F7o93rBjrDTmArTIz8RB/uGBOYE6ny/U7ppk+jEhM5A=";
21 };
22
23 postPatch = ''
24 sed '1i#include <array>' -i src/device.h # gcc12
25 '';
26
27 buildInputs = [
28 qtbase
29 qtgraphicaleffects
30 ];
31
32 nativeBuildInputs = [
33 cmake
34 pkg-config
35 wrapQtAppsHook
36 ];
37
38 cmakeFlags = [
39 "-DCMAKE_INSTALL_PREFIX:PATH=${placeholder "out"}"
40 "-DPACKAGE_TARGETS=OFF"
41 "-DCMAKE_INSTALL_UDEVRULESDIR=${placeholder "out"}/lib/udev/rules.d"
42 ];
43
44 meta = {
45 description = "Linux/X11 application for the Logitech Spotlight device (and similar devices).";
46 homepage = "https://github.com/jahnf/Projecteur";
47 license = lib.licenses.mit;
48 mainProgram = "projecteur";
49 maintainers = with lib.maintainers; [ benneti drupol ];
50 platforms = lib.platforms.linux;
51 };
52}