mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-29 16:24:10 +00:00
ead87baa84
GTK will crash during tests, likely due to refactored A11Y bus connection: (/build/source/build/tests/marker-layer:1261): Gtk-WARNING **: 17:18:22.907: Unable to acquire session bus: Cannot spawn a message bus without a machine-id: Unable to load /nix/store/61qy7d70070djqcg135l22v18a5py758-glib-2.74.3/var/lib/dbus/machine-id or /etc/machine-id: Failed to open file “/nix/store/61qy7d70070djqcg135l22v18a5py758-glib-2.74.3/var/lib/dbus/machine-id”: No such file or directory
92 lines
1.5 KiB
Nix
92 lines
1.5 KiB
Nix
{ 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.3";
|
|
|
|
outputs = [ "out" "dev" "devdoc" ];
|
|
outputBin = "devdoc"; # demo app
|
|
|
|
src = fetchFromGitLab {
|
|
domain = "gitlab.gnome.org";
|
|
owner = "GNOME";
|
|
repo = "libshumate";
|
|
rev = version;
|
|
sha256 = "gT6jpFN0mkSdDs+8GQa0qKuL5KLzxanBMGwA4EATW7Y=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
gi-docgen
|
|
meson
|
|
ninja
|
|
pkg-config
|
|
vala
|
|
gobject-introspection
|
|
];
|
|
|
|
buildInputs = [
|
|
glib
|
|
cairo
|
|
sqlite
|
|
libsoup_3
|
|
gtk4
|
|
];
|
|
|
|
checkInputs = [
|
|
xvfb-run
|
|
];
|
|
|
|
mesonFlags = [
|
|
"-Ddemos=true"
|
|
];
|
|
|
|
doCheck = !stdenv.isDarwin;
|
|
|
|
checkPhase = ''
|
|
runHook preCheck
|
|
|
|
env \
|
|
HOME="$TMPDIR" \
|
|
GTK_A11Y=none \
|
|
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;
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|