mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-29 18:33:00 +00:00
5356420466
$ find -type f -name '*.nix' -print0 | xargs -P "$(nproc)" -0 sed -i \ -e 's!with lib.maintainers; \[ *\];![ ];!' \ -e 's!with maintainers; \[ *\];![ ];!'
80 lines
1.3 KiB
Nix
80 lines
1.3 KiB
Nix
{ stdenv
|
|
, lib
|
|
, 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";
|
|
version = "0.2.1";
|
|
|
|
outputs = [ "bin" "out" "dev" "devdoc" "man" "installedTests" ];
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "hughsie";
|
|
repo = "libjcat";
|
|
rev = version;
|
|
sha256 = "sha256-tCXz62MEqYBnrx2RxlTBwKGTahfhUCVdet4VnXw5klQ=";
|
|
};
|
|
|
|
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
|
|
gnutls
|
|
gtk-doc
|
|
python3
|
|
];
|
|
|
|
buildInputs = [
|
|
glib
|
|
json-glib
|
|
gnutls
|
|
gpgme
|
|
];
|
|
|
|
mesonFlags = [
|
|
"-Dgtkdoc=true"
|
|
"-Dinstalled_test_prefix=${placeholder "installedTests"}"
|
|
];
|
|
|
|
doCheck = true;
|
|
|
|
passthru = {
|
|
tests = {
|
|
installed-tests = nixosTests.installed-tests.libjcat;
|
|
};
|
|
};
|
|
|
|
meta = with lib; {
|
|
description = "Library for reading and writing Jcat files";
|
|
mainProgram = "jcat-tool";
|
|
homepage = "https://github.com/hughsie/libjcat";
|
|
license = licenses.lgpl21Plus;
|
|
maintainers = [ ];
|
|
platforms = platforms.all;
|
|
};
|
|
}
|