Files
nixpkgs/pkgs/by-name/li/libshumate/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

107 lines
1.8 KiB
Nix

{
lib,
stdenv,
fetchurl,
gi-docgen,
meson,
ninja,
pkg-config,
vala,
gobject-introspection,
gperf,
glib,
cairo,
sqlite,
libsoup_3,
gtk4,
libsysprof-capture,
json-glib,
protobufc,
xvfb-run,
gnome,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "libshumate";
version = "1.4.0";
outputs = [
"out"
"dev"
"devdoc"
];
outputBin = "devdoc"; # demo app
src = fetchurl {
url = "mirror://gnome/sources/libshumate/${lib.versions.majorMinor finalAttrs.version}/libshumate-${finalAttrs.version}.tar.xz";
hash = "sha256-OYQ2jgJZhis4ENHdyG0trdbTcqKzI3bM9K/3wuSMbTA=";
};
depsBuildBuild = [
# required to find native gi-docgen when cross compiling
pkg-config
];
nativeBuildInputs = [
gi-docgen
meson
ninja
pkg-config
vala
gobject-introspection
gperf
];
buildInputs = [
glib
cairo
sqlite
libsoup_3
gtk4
libsysprof-capture
json-glib
protobufc
];
nativeCheckInputs = [
xvfb-run
];
mesonFlags = [
"-Ddemos=true"
];
doCheck = !stdenv.hostPlatform.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 = "libshumate";
};
};
meta = with lib; {
description = "GTK toolkit providing widgets for embedded maps";
mainProgram = "shumate-demo";
homepage = "https://gitlab.gnome.org/GNOME/libshumate";
license = licenses.lgpl21Plus;
teams = [ teams.gnome ];
platforms = platforms.unix;
};
})