From ce2895dabd46263a77c1b1e703629a657d23e381 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20Kr=C3=BCger?= Date: Sat, 5 Sep 2020 19:07:10 +0200 Subject: [PATCH] cinnamon.cinnamon-common.libcroco: init at 0.6.13 --- .../cinnamon/cinnamon-common/default.nix | 6 ++-- .../cinnamon/cinnamon-common/libcroco.nix | 33 +++++++++++++++++++ 2 files changed, 37 insertions(+), 2 deletions(-) create mode 100644 pkgs/desktops/cinnamon/cinnamon-common/libcroco.nix diff --git a/pkgs/desktops/cinnamon/cinnamon-common/default.nix b/pkgs/desktops/cinnamon/cinnamon-common/default.nix index b40869e6333c..a67f04473c84 100644 --- a/pkgs/desktops/cinnamon/cinnamon-common/default.nix +++ b/pkgs/desktops/cinnamon/cinnamon-common/default.nix @@ -15,7 +15,7 @@ , gtk3 , intltool , json-glib -, libcroco +, callPackage , libsoup , libstartup_notification , libXtst @@ -38,11 +38,13 @@ , accountsservice , gnome-online-accounts , glib-networking -, callPackage , pciutils , timezonemap }: +let + libcroco = callPackage ./libcroco.nix { }; +in stdenv.mkDerivation rec { pname = "cinnamon-common"; version = "4.4.1"; diff --git a/pkgs/desktops/cinnamon/cinnamon-common/libcroco.nix b/pkgs/desktops/cinnamon/cinnamon-common/libcroco.nix new file mode 100644 index 000000000000..c6f6e350c9f6 --- /dev/null +++ b/pkgs/desktops/cinnamon/cinnamon-common/libcroco.nix @@ -0,0 +1,33 @@ +{ stdenv, fetchurl, pkgconfig, libxml2, glib, gnome3 }: + +stdenv.mkDerivation rec { + pname = "libcroco"; + version = "0.6.13"; + + src = fetchurl { + url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz"; + sha256 = "1m110rbj5d2raxcdp4iz0qp172284945awrsbdlq99ksmqsc4zkn"; + }; + + outputs = [ "out" "dev" ]; + outputBin = "dev"; + + configureFlags = stdenv.lib.optional stdenv.isDarwin "--disable-Bsymbolic"; + + nativeBuildInputs = [ pkgconfig ]; + buildInputs = [ libxml2 glib ]; + + passthru = { + updateScript = gnome3.updateScript { + packageName = pname; + }; + }; + + meta = with stdenv.lib; { + description = "GNOME CSS2 parsing and manipulation toolkit"; + homepage = https://gitlab.gnome.org/GNOME/libcroco; + license = licenses.lgpl2; + platforms = platforms.unix; + }; +} +