blob: 4cb224e2c040f4aaa471d0535c4ce578dc8c3749 (
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
53
54
55
56
57
58
59
|
{ stdenv
, lib
, fetchFromGitHub
, nix-update-script
, testers
, qmake
, qtmultimedia
}:
stdenv.mkDerivation (finalAttrs: {
pname = "qzxing";
version = "3.3.0";
src = fetchFromGitHub {
owner = "ftylitak";
repo = "qzxing";
rev = "v${finalAttrs.version}";
hash = "sha256-ASgsF5ocNWAiIy2jm6ygpDkggBcEpno6iVNWYkuWcVI=";
};
# QMake can't find qtmultimedia in buildInputs
strictDeps = false;
nativeBuildInputs = [
qmake
];
buildInputs = [
qtmultimedia
];
dontWrapQtApps = true;
preConfigure = ''
cd src
'';
qmakeFlags = [
"CONFIG+=qzxing_qml"
"CONFIG+=qzxing_multimedia"
"QMAKE_PKGCONFIG_PREFIX=${placeholder "out"}"
];
passthru = {
tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage;
updateScript = nix-update-script { };
};
meta = with lib; {
description = "Qt/QML wrapper library for the ZXing library";
homepage = "https://github.com/ftylitak/qzxing";
license = licenses.asl20;
maintainers = with maintainers; [ OPNA2608 ];
platforms = platforms.unix;
pkgConfigModules = [
"QZXing"
];
};
})
|