nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 19.03 32 lines 1.0 kB view raw
1{stdenv, fetchurl, pkgconfig, perlPackages, libxml2, libxslt, docbook_xml_dtd_42, gnome3}: 2let 3 pname = "rarian"; 4 version = "0.8.1"; 5in stdenv.mkDerivation rec { 6 name = "${pname}-${version}"; 7 8 src = fetchurl { 9 url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${name}.tar.gz"; 10 sha256 = "aafe886d46e467eb3414e91fa9e42955bd4b618c3e19c42c773026b205a84577"; 11 }; 12 13 nativeBuildInputs = [ pkgconfig ]; 14 buildInputs = [ libxml2 libxslt ] 15 ++ (with perlPackages; [ perl XMLParser ]); 16 configureFlags = [ "--with-xml-catalog=${docbook_xml_dtd_42}/xml/dtd/docbook/docbook.cat" ]; 17 18 passthru = { 19 updateScript = gnome3.updateScript { 20 packageName = pname; 21 attrPath = "gnome3.${pname}"; 22 }; 23 }; 24 25 meta = with stdenv.lib; { 26 description = "Documentation metadata library based on the proposed Freedesktop.org spec"; 27 homepage = https://rarian.freedesktop.org/; 28 license = licenses.lgpl21Plus; 29 maintainers = gnome3.maintainers; 30 platforms = platforms.linux; 31 }; 32}