mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-20 20:53:48 +00:00
d6af70fa90
Fixes: https://nvd.nist.gov/vuln/detail/CVE-2020-10759 Changelog: https://github.com/hughsie/libjcat/blob/0.1.3/NEWS See also: https://github.com/justinsteven/advisories/blob/master/2020_fwupd_dangling_s3_bucket_and_CVE-2020-10759_signature_verification_bypass.md
85 lines
1.5 KiB
Nix
85 lines
1.5 KiB
Nix
{ stdenv
|
|
, fetchFromGitHub
|
|
, docbook_xml_dtd_43
|
|
, docbook-xsl-nons
|
|
, glib
|
|
, json-glib
|
|
, gnutls
|
|
, gpgme
|
|
, gobject-introspection
|
|
, vala
|
|
, help2man
|
|
, gtk-doc
|
|
, meson
|
|
, ninja
|
|
, pkg-config
|
|
, python3
|
|
, nixosTests
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "libjcat";
|
|
version = "0.1.3";
|
|
|
|
outputs = [ "bin" "out" "dev" "devdoc" "man" "installedTests" ];
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "hughsie";
|
|
repo = "libjcat";
|
|
rev = version;
|
|
sha256 = "157bi1v9qqk45rkq7lg08l7g3bxwacl4h89vnr7msjmg0hri36kc";
|
|
};
|
|
|
|
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
|
|
help2man
|
|
gtk-doc
|
|
(python3.withPackages (pkgs: with pkgs; [
|
|
setuptools
|
|
]))
|
|
];
|
|
|
|
buildInputs = [
|
|
glib
|
|
json-glib
|
|
gnutls
|
|
gpgme
|
|
];
|
|
|
|
mesonFlags = [
|
|
"-Dgtkdoc=true"
|
|
"-Dinstalled_test_prefix=${placeholder "installedTests"}"
|
|
];
|
|
|
|
postPatch = ''
|
|
patchShebangs contrib/generate-version-script.py
|
|
'';
|
|
|
|
doCheck = true;
|
|
|
|
passthru = {
|
|
tests = {
|
|
installed-tests = nixosTests.installed-tests.libjcat;
|
|
};
|
|
};
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Library for reading and writing Jcat files";
|
|
homepage = "https://github.com/hughsie/libjcat";
|
|
license = licenses.lgpl21Plus;
|
|
maintainers = with maintainers; [ jtojnar ];
|
|
platforms = platforms.all;
|
|
};
|
|
}
|