Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ stdenv
2, lib
3, fetchFromGitHub
4, docbook_xml_dtd_43
5, docbook-xsl-nons
6, glib
7, json-glib
8, gnutls
9, gpgme
10, gobject-introspection
11, vala
12, gtk-doc
13, meson
14, ninja
15, pkg-config
16, python3
17, nixosTests
18}:
19
20stdenv.mkDerivation rec {
21 pname = "libjcat";
22 version = "0.1.14";
23
24 outputs = [ "bin" "out" "dev" "devdoc" "man" "installedTests" ];
25
26 src = fetchFromGitHub {
27 owner = "hughsie";
28 repo = "libjcat";
29 rev = version;
30 sha256 = "sha256-XN7/ZtWCCO7lSspXM4vNowoWN1U0NGQPUTM9KjTEHjY=";
31 };
32
33 patches = [
34 # Installed tests are installed to different output
35 ./installed-tests-path.patch
36 ];
37
38 nativeBuildInputs = [
39 meson
40 ninja
41 pkg-config
42 docbook_xml_dtd_43
43 docbook-xsl-nons
44 gobject-introspection
45 vala
46 gnutls
47 gtk-doc
48 python3
49 ];
50
51 buildInputs = [
52 glib
53 json-glib
54 gnutls
55 gpgme
56 ];
57
58 mesonFlags = [
59 "-Dgtkdoc=true"
60 "-Dinstalled_test_prefix=${placeholder "installedTests"}"
61 ];
62
63 doCheck = true;
64
65 passthru = {
66 tests = {
67 installed-tests = nixosTests.installed-tests.libjcat;
68 };
69 };
70
71 meta = with lib; {
72 description = "Library for reading and writing Jcat files";
73 homepage = "https://github.com/hughsie/libjcat";
74 license = licenses.lgpl21Plus;
75 maintainers = with maintainers; [ ];
76 platforms = platforms.all;
77 };
78}