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
60
61
62
|
{
lib,
stdenv,
fetchFromGitHub,
testers,
cmake,
pkg-config,
wrapQtAppsHook,
pcsclite,
qtscxml,
qtsvg,
qttools,
qtwayland,
qtwebsockets,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "ausweisapp";
version = "2.2.0";
src = fetchFromGitHub {
owner = "Governikus";
repo = "AusweisApp2";
rev = finalAttrs.version;
hash = "sha256-YOsKAWc6z39OPzc4eWc/9RhRoOD+J5xHve4Low1UX+Q=";
};
nativeBuildInputs = [
cmake
pkg-config
wrapQtAppsHook
];
# The build scripts copy the entire translations directory from Qt
# which ends up being read-only because it's in the store.
preBuild = ''
chmod +w resources/translations
'';
buildInputs = [
pcsclite
qtscxml
qtsvg
qttools
qtwayland
qtwebsockets
];
passthru.tests.version = testers.testVersion {
package = finalAttrs.finalPackage;
command = "QT_QPA_PLATFORM=offscreen ${finalAttrs.meta.mainProgram} --version";
};
meta = {
description = "Official authentication app for German ID card and residence permit";
downloadPage = "https://github.com/Governikus/AusweisApp2/releases";
homepage = "https://www.ausweisapp.bund.de/open-source-software";
license = lib.licenses.eupl12;
mainProgram = "AusweisApp";
maintainers = with lib.maintainers; [b4dm4n];
platforms = lib.platforms.linux;
};
})
|