-
-
Notifications
You must be signed in to change notification settings - Fork 15k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
libshumate: init at unstable-2021-10-06
- Loading branch information
Showing
2 changed files
with
87 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
{ lib | ||
, stdenv | ||
, fetchFromGitLab | ||
, gi-docgen | ||
, meson | ||
, ninja | ||
, pkg-config | ||
, vala | ||
, gobject-introspection | ||
, glib | ||
, cairo | ||
, sqlite | ||
, libsoup | ||
, gtk4 | ||
, xvfb-run | ||
, unstableGitUpdater | ||
}: | ||
|
||
stdenv.mkDerivation rec { | ||
pname = "libshumate"; | ||
version = "unstable-2021-10-06"; | ||
|
||
outputs = [ "out" "dev" "devdoc" ]; | ||
outputBin = "devdoc"; # demo app | ||
|
||
src = fetchFromGitLab { | ||
domain = "gitlab.gnome.org"; | ||
owner = "GNOME"; | ||
repo = "libshumate"; | ||
rev = "7a0a03f299881e8faaac7d904cc47b74795ae5dd"; | ||
sha256 = "df8ZHn/wmkzaYH0L3E6ULUtqxqU71EqL0jSgKhWqlT8="; | ||
}; | ||
|
||
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 | ||
HOME=$TMPDIR xvfb-run meson test | ||
runHook postCheck | ||
''; | ||
|
||
postFixup = '' | ||
# Cannot be in postInstall, otherwise _multioutDocs hook in preFixup will move right back. | ||
moveToOutput share/doc/libshumate-0.0 "$devdoc" | ||
''; | ||
|
||
passthru.updateScript = unstableGitUpdater { | ||
url = meta.homepage; | ||
}; | ||
|
||
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; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters