2021-10-09 20:51:09 +02:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitLab
|
|
|
|
, gi-docgen
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, pkg-config
|
|
|
|
, vala
|
|
|
|
, gobject-introspection
|
|
|
|
, glib
|
|
|
|
, cairo
|
|
|
|
, sqlite
|
|
|
|
, libsoup
|
|
|
|
, gtk4
|
|
|
|
, xvfb-run
|
2022-01-27 12:23:57 +01:00
|
|
|
, gnome
|
2021-10-09 20:51:09 +02:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "libshumate";
|
2022-01-27 12:23:57 +01:00
|
|
|
version = "1.0.0.alpha.1";
|
2021-10-09 20:51:09 +02:00
|
|
|
|
|
|
|
outputs = [ "out" "dev" "devdoc" ];
|
|
|
|
outputBin = "devdoc"; # demo app
|
|
|
|
|
|
|
|
src = fetchFromGitLab {
|
|
|
|
domain = "gitlab.gnome.org";
|
|
|
|
owner = "GNOME";
|
|
|
|
repo = "libshumate";
|
2022-01-27 12:23:57 +01:00
|
|
|
rev = version;
|
|
|
|
sha256 = "4kCXFUJRglh1aIBk03MNUV8jfx0mJzIFCUDM4g9tzlg=";
|
2021-10-09 20:51:09 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
gi-docgen
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
pkg-config
|
|
|
|
vala
|
|
|
|
gobject-introspection
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
glib
|
|
|
|
cairo
|
|
|
|
sqlite
|
|
|
|
libsoup
|
|
|
|
gtk4
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
xvfb-run
|
|
|
|
];
|
|
|
|
|
|
|
|
mesonFlags = [
|
|
|
|
"-Ddemos=true"
|
|
|
|
];
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
runHook preCheck
|
|
|
|
|
2021-10-14 02:41:26 +02:00
|
|
|
HOME=$TMPDIR xvfb-run meson test --print-errorlogs
|
2021-10-09 20:51:09 +02:00
|
|
|
|
|
|
|
runHook postCheck
|
|
|
|
'';
|
|
|
|
|
|
|
|
postFixup = ''
|
|
|
|
# Cannot be in postInstall, otherwise _multioutDocs hook in preFixup will move right back.
|
2022-01-27 12:23:57 +01:00
|
|
|
moveToOutput share/doc/libshumate-1.0 "$devdoc"
|
2021-10-09 20:51:09 +02:00
|
|
|
'';
|
|
|
|
|
2022-01-27 12:23:57 +01:00
|
|
|
passthru = {
|
|
|
|
updateScript = gnome.updateScript {
|
|
|
|
packageName = pname;
|
|
|
|
versionPolicy = "none";
|
|
|
|
};
|
2021-10-09 20:51:09 +02: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;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|