libcroco: add updateScript

This commit is contained in:
Jan Tojnar 2018-03-03 05:45:41 +01:00
parent 1dacd66a77
commit 7a0ee31dd9
No known key found for this signature in database
GPG Key ID: 7FAB2A15F7A607A4

View File

@ -1,10 +1,12 @@
{ stdenv, fetchurl, pkgconfig, libxml2, glib, fetchpatch }:
stdenv.mkDerivation rec {
name = "libcroco-0.6.12";
{ stdenv, fetchurl, pkgconfig, libxml2, glib, fetchpatch, gnome3 }:
let
pname = "libcroco";
version = "0.6.12";
in stdenv.mkDerivation rec {
name = "${pname}-${version}";
src = fetchurl {
url = "mirror://gnome/sources/libcroco/0.6/${name}.tar.xz";
url = "mirror://gnome/sources/${pname}/${gnome3.versionBranch version}/${name}.tar.xz";
sha256 = "0q7qhi7z64i26zabg9dbs5706fa8pmzp1qhpa052id4zdiabbi6x";
};
@ -29,6 +31,12 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ libxml2 glib ];
passthru = {
updateScript = gnome3.updateScript {
packageName = pname;
};
};
meta = with stdenv.lib; {
description = "GNOME CSS2 parsing and manipulation toolkit";
homepage = https://git.gnome.org/browse/libcroco;