2021-10-14 00:43:12 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitLab
|
|
|
|
, gi-docgen
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, pkg-config
|
|
|
|
, vala
|
|
|
|
, gobject-introspection
|
|
|
|
, glib
|
|
|
|
, cairo
|
|
|
|
, sqlite
|
2022-10-21 18:38:19 +00:00
|
|
|
, libsoup_3
|
2021-10-14 00:43:12 +00:00
|
|
|
, gtk4
|
|
|
|
, xvfb-run
|
2022-02-10 20:34:41 +00:00
|
|
|
, gnome
|
2021-10-14 00:43:12 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "libshumate";
|
2022-12-17 10:02:37 +00:00
|
|
|
version = "1.0.3";
|
2021-10-14 00:43:12 +00:00
|
|
|
|
|
|
|
outputs = [ "out" "dev" "devdoc" ];
|
|
|
|
outputBin = "devdoc"; # demo app
|
|
|
|
|
|
|
|
src = fetchFromGitLab {
|
|
|
|
domain = "gitlab.gnome.org";
|
|
|
|
owner = "GNOME";
|
|
|
|
repo = "libshumate";
|
2022-02-10 20:34:41 +00:00
|
|
|
rev = version;
|
2022-12-17 10:02:37 +00:00
|
|
|
sha256 = "gT6jpFN0mkSdDs+8GQa0qKuL5KLzxanBMGwA4EATW7Y=";
|
2021-10-14 00:43:12 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
gi-docgen
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
pkg-config
|
|
|
|
vala
|
|
|
|
gobject-introspection
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
glib
|
|
|
|
cairo
|
|
|
|
sqlite
|
2022-10-21 18:38:19 +00:00
|
|
|
libsoup_3
|
2021-10-14 00:43:12 +00:00
|
|
|
gtk4
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
xvfb-run
|
|
|
|
];
|
|
|
|
|
|
|
|
mesonFlags = [
|
|
|
|
"-Ddemos=true"
|
|
|
|
];
|
|
|
|
|
2022-10-21 18:38:19 +00:00
|
|
|
doCheck = !stdenv.isDarwin;
|
2021-10-14 00:43:12 +00:00
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
runHook preCheck
|
|
|
|
|
|
|
|
HOME=$TMPDIR xvfb-run meson test --print-errorlogs
|
|
|
|
|
|
|
|
runHook postCheck
|
|
|
|
'';
|
|
|
|
|
|
|
|
postFixup = ''
|
|
|
|
# Cannot be in postInstall, otherwise _multioutDocs hook in preFixup will move right back.
|
2022-02-10 20:34:41 +00:00
|
|
|
moveToOutput share/doc/libshumate-1.0 "$devdoc"
|
2021-10-14 00:43:12 +00:00
|
|
|
'';
|
|
|
|
|
2022-02-10 20:34:41 +00:00
|
|
|
passthru = {
|
|
|
|
updateScript = gnome.updateScript {
|
|
|
|
packageName = pname;
|
|
|
|
versionPolicy = "none";
|
|
|
|
};
|
2021-10-14 00:43:12 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "GTK toolkit providing widgets for embedded maps";
|
|
|
|
homepage = "https://gitlab.gnome.org/GNOME/libshumate";
|
|
|
|
license = licenses.lgpl21Plus;
|
|
|
|
maintainers = teams.gnome.members;
|
2022-10-21 18:38:19 +00:00
|
|
|
platforms = platforms.unix;
|
2021-10-14 00:43:12 +00:00
|
|
|
};
|
|
|
|
}
|