nixpkgs/pkgs/by-name/li/libjcat/package.nix
Winter a19cd4ffb1 Revert "treewide: replace rev with tag"
This reverts commit 65a333600d5c88a98d674f637d092807cfc12253.

This wasn't tested for correctness with something like fodwatch [0],
and should not have been (self-)merged so quickly, especially without
further review.

It also resulted in the breakage of at least one package [1] (and that's
the one we know of and was caught).

A few packages that were updated in between this commit and this revert
were not reverted back to using `rev`, but other than that, this is a
1:1 revert.

[0]: https://codeberg.org/raphaelr/fodwatch
[1]: https://github.com/NixOS/nixpkgs/pull/396904 / 758551e4587d75882aebc21a04bee960418f8ce9
2025-04-08 02:57:25 -04:00

88 lines
1.4 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.3";
outputs = [
"bin"
"out"
"dev"
"devdoc"
"man"
"installedTests"
];
src = fetchFromGitHub {
owner = "hughsie";
repo = "libjcat";
rev = version;
sha256 = "sha256-3Ttk5nwVLB/Ll4Xz25JODOKHsGrOxKeSF2f+6QhDI2Q=";
};
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;
};
}