gnome3.rarian: add updateScript

This commit is contained in:
Jan Tojnar 2018-03-03 06:42:12 +01:00
parent 90b232900f
commit 36c29a4910
No known key found for this signature in database
GPG Key ID: 7FAB2A15F7A607A4

View File

@ -1,9 +1,12 @@
{stdenv, fetchurl, pkgconfig, perl, perlXMLParser, libxml2, libxslt, docbook_xml_dtd_42}: {stdenv, fetchurl, pkgconfig, perl, perlXMLParser, libxml2, libxslt, docbook_xml_dtd_42, gnome3}:
let
pname = "rarian";
version = "0.8.1";
in stdenv.mkDerivation rec {
name = "${pname}-${version}";
stdenv.mkDerivation rec {
name = "rarian-0.8.1";
src = fetchurl { src = fetchurl {
url = "mirror://gnome/sources/rarian/0.8/${name}.tar.bz2"; url = "mirror://gnome/sources/${pname}/${gnome3.versionBranch version}/${name}.tar.xz";
sha256 = "aafe886d46e467eb3414e91fa9e42955bd4b618c3e19c42c773026b205a84577"; sha256 = "aafe886d46e467eb3414e91fa9e42955bd4b618c3e19c42c773026b205a84577";
}; };
@ -11,7 +14,18 @@ stdenv.mkDerivation rec {
buildInputs = [ perl perlXMLParser libxml2 libxslt]; buildInputs = [ perl perlXMLParser libxml2 libxslt];
configureFlags = "--with-xml-catalog=${docbook_xml_dtd_42}/xml/dtd/docbook/docbook.cat"; configureFlags = "--with-xml-catalog=${docbook_xml_dtd_42}/xml/dtd/docbook/docbook.cat";
passthru = {
updateScript = gnome3.updateScript {
packageName = pname;
attrPath = "gnome3.${pname}";
};
};
meta = with stdenv.lib; { meta = with stdenv.lib; {
description = "Documentation metadata library based on the proposed Freedesktop.org spec";
homepage = https://rarian.freedesktop.org/;
license = licenses.lgpl21Plus;
maintainers = gnome3.maintainers;
platforms = platforms.linux; platforms = platforms.linux;
}; };
} }