ff1a94e523
The nixpkgs-unstable channel's programs.sqlite was used to identify packages producing exactly one binary, and these automatically added to their package definitions wherever possible.
98 lines
1.7 KiB
Nix
98 lines
1.7 KiB
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitLab
|
|
, gi-docgen
|
|
, meson
|
|
, ninja
|
|
, pkg-config
|
|
, vala
|
|
, gobject-introspection
|
|
, glib
|
|
, cairo
|
|
, sqlite
|
|
, libsoup_3
|
|
, gtk4
|
|
, libsysprof-capture
|
|
, xvfb-run
|
|
, gnome
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "libshumate";
|
|
version = "1.1.3";
|
|
|
|
outputs = [ "out" "dev" "devdoc" ];
|
|
outputBin = "devdoc"; # demo app
|
|
|
|
src = fetchFromGitLab {
|
|
domain = "gitlab.gnome.org";
|
|
owner = "GNOME";
|
|
repo = "libshumate";
|
|
rev = version;
|
|
sha256 = "+h0dKLECtvfsxwD5aRTIgiNI9jG/tortUJYFiYMe60g=";
|
|
};
|
|
|
|
depsBuildBuild = [
|
|
# required to find native gi-docgen when cross compiling
|
|
pkg-config
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
gi-docgen
|
|
meson
|
|
ninja
|
|
pkg-config
|
|
vala
|
|
gobject-introspection
|
|
];
|
|
|
|
buildInputs = [
|
|
glib
|
|
cairo
|
|
sqlite
|
|
libsoup_3
|
|
gtk4
|
|
libsysprof-capture
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
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;
|
|
};
|
|
};
|
|
|
|
meta = with lib; {
|
|
description = "GTK toolkit providing widgets for embedded maps";
|
|
mainProgram = "shumate-demo";
|
|
homepage = "https://gitlab.gnome.org/GNOME/libshumate";
|
|
license = licenses.lgpl21Plus;
|
|
maintainers = teams.gnome.members;
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|