2018-04-24 20:58:45 -07:00
|
|
|
{ stdenv, fetchurl, fetchpatch, pkgconfig, gnum4, glib, libsigcxx }:
|
2013-02-21 14:36:13 -08:00
|
|
|
|
2013-12-10 08:02:13 -08:00
|
|
|
let
|
2018-04-24 21:00:27 -07:00
|
|
|
ver_maj = "2.56";
|
|
|
|
ver_min = "0";
|
2013-12-10 08:02:13 -08:00
|
|
|
in
|
2013-02-21 14:36:13 -08:00
|
|
|
stdenv.mkDerivation rec {
|
2013-12-10 08:02:13 -08:00
|
|
|
name = "glibmm-${ver_maj}.${ver_min}";
|
2013-02-21 14:36:13 -08:00
|
|
|
|
|
|
|
src = fetchurl {
|
2013-12-10 08:02:13 -08:00
|
|
|
url = "mirror://gnome/sources/glibmm/${ver_maj}/${name}.tar.xz";
|
2018-04-24 21:00:27 -07:00
|
|
|
sha256 = "1abrkqhca5p8n6ly3vp1232rny03s7lrd8f8iz2m2m141nxgqx3f";
|
2013-02-21 14:36:13 -08:00
|
|
|
};
|
|
|
|
|
2016-08-28 17:30:01 -07:00
|
|
|
outputs = [ "out" "dev" ];
|
2016-04-24 10:20:28 -07:00
|
|
|
|
2018-04-24 20:58:45 -07:00
|
|
|
patchFlags = "-p0";
|
|
|
|
patches = [
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://raw.githubusercontent.com/macports/macports-ports/e864b2340be9ef003d8ff4aef92e7151d06287dd/devel/glibmm/files/0001-ustring-Fix-wchar-conversion-on-macOS-with-libc.patch";
|
|
|
|
sha256 = "02qvnailw1i59cjbj3cy7y02kfcivsvkdjrf4njkp4plarayyqp9";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2016-03-10 01:38:36 -08:00
|
|
|
nativeBuildInputs = [ pkgconfig gnum4 ];
|
2013-12-10 08:02:13 -08:00
|
|
|
propagatedBuildInputs = [ glib libsigcxx ];
|
|
|
|
|
2016-03-10 01:38:36 -08:00
|
|
|
enableParallelBuilding = true;
|
2018-08-10 04:20:39 -07:00
|
|
|
|
|
|
|
doCheck = false; # fails. one test needs the net, another /etc/fstab
|
2013-02-21 14:36:13 -08:00
|
|
|
|
2016-03-10 01:38:36 -08:00
|
|
|
meta = with stdenv.lib; {
|
2013-02-21 14:36:13 -08:00
|
|
|
description = "C++ interface to the GLib library";
|
|
|
|
|
2017-08-02 14:50:51 -07:00
|
|
|
homepage = https://gtkmm.org/;
|
2013-02-21 14:36:13 -08:00
|
|
|
|
2016-03-10 01:38:36 -08:00
|
|
|
license = licenses.lgpl2Plus;
|
2013-02-21 14:36:13 -08:00
|
|
|
|
2016-03-10 01:38:36 -08:00
|
|
|
maintainers = with maintainers; [raskin];
|
|
|
|
platforms = platforms.unix;
|
2013-02-21 14:36:13 -08:00
|
|
|
};
|
|
|
|
}
|