From 37faf68b8661d70d776ad164873d5adf1151b765 Mon Sep 17 00:00:00 2001 From: Jan Tojnar Date: Tue, 25 Dec 2018 16:29:16 +0100 Subject: [PATCH] =?UTF-8?q?libsigcxx:=202.10.0=20=E2=86=92=202.10.1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../libraries/libsigcxx/default.nix | 21 ++++++++++++------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/pkgs/development/libraries/libsigcxx/default.nix b/pkgs/development/libraries/libsigcxx/default.nix index 8eba5377bc34..434dbfb9f725 100644 --- a/pkgs/development/libraries/libsigcxx/default.nix +++ b/pkgs/development/libraries/libsigcxx/default.nix @@ -1,20 +1,25 @@ -{ stdenv, fetchurl, pkgconfig, gnum4 }: -let - ver_maj = "2.10"; # odd major numbers are unstable - ver_min = "0"; -in +{ stdenv, fetchurl, pkgconfig, gnum4, gnome3 }: + stdenv.mkDerivation rec { - name = "libsigc++-${ver_maj}.${ver_min}"; + pname = "libsigc++"; + version = "2.10.1"; src = fetchurl { - url = "mirror://gnome/sources/libsigc++/${ver_maj}/${name}.tar.xz"; - sha256 = "f843d6346260bfcb4426259e314512b99e296e8ca241d771d21ac64f28298d81"; + url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz"; + sha256 = "00v08km4wwzbh6vjxb21388wb9dm6g2xh14rgwabnv4c2wk5z8n9"; }; nativeBuildInputs = [ pkgconfig gnum4 ]; doCheck = true; + passthru = { + updateScript = gnome3.updateScript { + packageName = pname; + attrPath = "libsigcxx"; + }; + }; + meta = with stdenv.lib; { homepage = https://libsigcplusplus.github.io/libsigcplusplus/; description = "A typesafe callback system for standard C++";