nixpkgs/pkgs/development/libraries/libshumate/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

89 lines
1.5 KiB
Nix
Raw Normal View History

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