@@ -1,20 +1,25 @@
1−{ stdenv, fetchurl, pkgconfig, gnum4 }:
2−let
3− ver_maj = "2.10"; # odd major numbers are unstable
4− ver_min = "0";
5−in
1+{ stdenv, fetchurl, pkgconfig, gnum4, gnome3 }:
2+
63stdenv.mkDerivation rec {
7− name = "libsigc++-${ver_maj}.${ver_min}";
4+ pname = "libsigc++";
5+ version = "2.10.1";
86
97 src = fetchurl {
10− url = "mirror://gnome/sources/libsigc++/${ver_maj}/${name}.tar.xz";
11− sha256 = "f843d6346260bfcb4426259e314512b99e296e8ca241d771d21ac64f28298d81";
8+ url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
9+ sha256 = "00v08km4wwzbh6vjxb21388wb9dm6g2xh14rgwabnv4c2wk5z8n9";
1210 };
1311
1412 nativeBuildInputs = [ pkgconfig gnum4 ];
1513
1614 doCheck = true;
1715
16+ passthru = {
17+ updateScript = gnome3.updateScript {
18+ packageName = pname;
19+ attrPath = "libsigcxx";
20+ };
21+ };
22+
1823 meta = with stdenv.lib; {
1924 homepage = https://libsigcplusplus.github.io/libsigcplusplus/;
2025 description = "A typesafe callback system for standard C++";