2022-04-29 15:36:53 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
2020-03-30 05:37:07 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, docbook_xml_dtd_43
|
|
|
|
, docbook-xsl-nons
|
|
|
|
, glib
|
|
|
|
, json-glib
|
|
|
|
, gnutls
|
|
|
|
, gpgme
|
|
|
|
, gobject-introspection
|
|
|
|
, vala
|
|
|
|
, gtk-doc
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, pkg-config
|
|
|
|
, python3
|
|
|
|
, nixosTests
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "libjcat";
|
2022-09-12 08:15:45 +00:00
|
|
|
version = "0.1.12";
|
2020-03-30 05:37:07 +00:00
|
|
|
|
|
|
|
outputs = [ "bin" "out" "dev" "devdoc" "man" "installedTests" ];
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "hughsie";
|
|
|
|
repo = "libjcat";
|
|
|
|
rev = version;
|
2022-09-12 08:15:45 +00:00
|
|
|
sha256 = "sha256-9+wtCJzvT9uAXRXj/koFG7asxm5JIDw0Ffp4wK6tbDk=";
|
2020-03-30 05:37:07 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
patches = [
|
|
|
|
# Installed tests are installed to different output
|
|
|
|
./installed-tests-path.patch
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
pkg-config
|
|
|
|
docbook_xml_dtd_43
|
|
|
|
docbook-xsl-nons
|
|
|
|
gobject-introspection
|
|
|
|
vala
|
|
|
|
gtk-doc
|
2022-02-19 06:54:33 +00:00
|
|
|
python3
|
2020-03-30 05:37:07 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
glib
|
|
|
|
json-glib
|
|
|
|
gnutls
|
|
|
|
gpgme
|
|
|
|
];
|
|
|
|
|
|
|
|
mesonFlags = [
|
|
|
|
"-Dgtkdoc=true"
|
|
|
|
"-Dinstalled_test_prefix=${placeholder "installedTests"}"
|
|
|
|
];
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
passthru = {
|
|
|
|
tests = {
|
|
|
|
installed-tests = nixosTests.installed-tests.libjcat;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2020-03-30 05:37:07 +00:00
|
|
|
description = "Library for reading and writing Jcat files";
|
|
|
|
homepage = "https://github.com/hughsie/libjcat";
|
|
|
|
license = licenses.lgpl21Plus;
|
|
|
|
maintainers = with maintainers; [ jtojnar ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|