2021-05-20 23:08:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, pkg-config, gnum4, glib, libsigcxx, gnome, darwin, meson, ninja }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "glibmm";
|
2024-05-15 15:35:15 +00:00
|
|
|
version = "2.66.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-02-05 17:12:51 +00:00
|
|
|
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
2024-05-15 15:35:15 +00:00
|
|
|
hash = "sha256-/gLB5fWCWUDYK1a27DGhLAbAXBWDz+Yvk00HY+HlQrM=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
|
2020-09-25 04:45:31 +00:00
|
|
|
nativeBuildInputs = [
|
2021-04-05 15:23:46 +00:00
|
|
|
meson
|
2021-02-05 17:12:51 +00:00
|
|
|
pkg-config
|
2021-04-05 15:23:46 +00:00
|
|
|
ninja
|
2020-09-25 04:45:31 +00:00
|
|
|
gnum4
|
|
|
|
glib # for glib-compile-schemas
|
|
|
|
];
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
buildInputs = lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [
|
2020-04-24 23:36:52 +00:00
|
|
|
Cocoa
|
|
|
|
]);
|
|
|
|
propagatedBuildInputs = [ glib libsigcxx ];
|
|
|
|
|
|
|
|
doCheck = false; # fails. one test needs the net, another /etc/fstab
|
|
|
|
|
|
|
|
passthru = {
|
2021-05-20 23:08:51 +00:00
|
|
|
updateScript = gnome.updateScript {
|
2020-04-24 23:36:52 +00:00
|
|
|
packageName = pname;
|
2021-05-20 23:08:51 +00:00
|
|
|
versionPolicy = "odd-unstable";
|
2021-10-14 00:43:12 +00:00
|
|
|
freeze = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "C++ interface to the GLib library";
|
|
|
|
|
|
|
|
homepage = "https://gtkmm.org/";
|
|
|
|
|
|
|
|
license = licenses.lgpl2Plus;
|
|
|
|
|
|
|
|
maintainers = with maintainers; [raskin];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|