tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
projecteur: reformat
Pol Dellaiera
2 years ago
e2523795
bfc4d876
+26
-10
1 changed file
expand all
collapse all
unified
split
pkgs
os-specific
linux
projecteur
default.nix
+26
-10
pkgs/os-specific/linux/projecteur/default.nix
···
1
1
-
{ lib, mkDerivation, fetchFromGitHub,
2
2
-
cmake, pkg-config,
3
3
-
qtbase, qtgraphicaleffects, wrapQtAppsHook }:
1
1
+
{ lib
2
2
+
, mkDerivation
3
3
+
, fetchFromGitHub
4
4
+
, cmake
5
5
+
, pkg-config
6
6
+
, qtbase
7
7
+
, qtgraphicaleffects
8
8
+
, wrapQtAppsHook
9
9
+
}:
10
10
+
4
11
mkDerivation rec {
5
12
pname = "projecteur";
6
13
version = "0.9.2";
···
10
17
repo = "Projecteur";
11
18
rev = "v${version}";
12
19
fetchSubmodules = false;
13
13
-
sha256 = "sha256-kg6oYtJ4H5A6RNATBg+XvMfCb9FlhEBFjfxamGosMQg=";
20
20
+
hash = "sha256-kg6oYtJ4H5A6RNATBg+XvMfCb9FlhEBFjfxamGosMQg=";
14
21
};
15
22
16
23
postPatch = ''
17
24
sed '1i#include <array>' -i src/device.h # gcc12
18
25
'';
19
26
20
20
-
buildInputs = [ qtbase qtgraphicaleffects ];
21
21
-
nativeBuildInputs = [ wrapQtAppsHook cmake pkg-config ];
27
27
+
buildInputs = [
28
28
+
qtbase
29
29
+
qtgraphicaleffects
30
30
+
];
31
31
+
32
32
+
nativeBuildInputs = [
33
33
+
cmake
34
34
+
pkg-config
35
35
+
wrapQtAppsHook
36
36
+
];
22
37
23
38
cmakeFlags = [
24
39
"-DCMAKE_INSTALL_PREFIX:PATH=${placeholder "out"}"
···
26
41
"-DCMAKE_INSTALL_UDEVRULESDIR=${placeholder "out"}/lib/udev/rules.d"
27
42
];
28
43
29
29
-
meta = with lib; {
44
44
+
meta = {
30
45
description = "Linux/X11 application for the Logitech Spotlight device (and similar devices).";
31
46
homepage = "https://github.com/jahnf/Projecteur";
32
32
-
license = licenses.mit;
33
33
-
platforms = platforms.linux;
34
34
-
maintainers = with maintainers; [ benneti ];
47
47
+
license = lib.licenses.mit;
48
48
+
mainProgram = "projecteur";
49
49
+
maintainers = with lib.maintainers; [ benneti drupol ];
50
50
+
platforms = lib.platforms.linux;
35
51
};
36
52
}