2016-03-10 10:26:44 +00:00
|
|
|
{ stdenv, fetchurl, fetchpatch, pkgconfig, gnum4 }:
|
2016-03-10 09:21:33 +00:00
|
|
|
let
|
2016-04-03 06:06:27 +00:00
|
|
|
ver_maj = "2.8"; # odd major numbers are unstable
|
|
|
|
ver_min = "0";
|
2016-03-10 09:21:33 +00:00
|
|
|
in
|
2009-02-17 16:09:58 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2016-03-10 09:21:33 +00:00
|
|
|
name = "libsigc++-${ver_maj}.${ver_min}";
|
2012-06-16 14:15:32 +00:00
|
|
|
|
2005-09-07 14:57:30 +00:00
|
|
|
src = fetchurl {
|
2016-03-10 09:21:33 +00:00
|
|
|
url = "mirror://gnome/sources/libsigc++/${ver_maj}/${name}.tar.xz";
|
2016-04-03 06:06:27 +00:00
|
|
|
sha256 = "0lcnzzdq6718znfshs1hflpwqq6awbzwdyp4kv5lfaf54z880jbp";
|
2005-09-07 14:57:30 +00:00
|
|
|
};
|
2016-03-10 10:26:44 +00:00
|
|
|
patches = [(fetchpatch {
|
|
|
|
url = "https://anonscm.debian.org/cgit/collab-maint/libsigc++-2.0.git/plain"
|
|
|
|
+ "/debian/patches/0002-Enforce-c-11-via-pkg-config.patch?id=d451a4d195b1";
|
|
|
|
sha256 = "19g19473syp2z3kg8vdrli89lm9kcvaqajkqfmdig1vfpkbq0nci";
|
|
|
|
})];
|
2005-09-07 14:57:30 +00:00
|
|
|
|
2016-03-10 09:21:33 +00:00
|
|
|
nativeBuildInputs = [ pkgconfig gnum4 ];
|
2005-09-07 14:57:30 +00:00
|
|
|
|
2013-12-10 15:53:45 +00:00
|
|
|
doCheck = true;
|
|
|
|
|
2016-03-10 09:21:33 +00:00
|
|
|
meta = with stdenv.lib; {
|
2009-02-17 16:09:58 +00:00
|
|
|
homepage = http://libsigc.sourceforge.net/;
|
|
|
|
description = "A typesafe callback system for standard C++";
|
2016-03-10 09:21:33 +00:00
|
|
|
license = licenses.lgpl21;
|
|
|
|
platforms = platforms.all;
|
2009-02-17 16:09:58 +00:00
|
|
|
};
|
|
|
|
}
|