2021-05-03 20:48:10 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitLab
|
|
|
|
, docbook-xsl-nons
|
2021-06-28 23:13:55 +00:00
|
|
|
, gi-docgen
|
2021-05-03 20:48:10 +00:00
|
|
|
, gtk-doc
|
2021-06-28 23:13:55 +00:00
|
|
|
, libxml2
|
2021-05-03 20:48:10 +00:00
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, pkg-config
|
|
|
|
, sassc
|
|
|
|
, vala
|
|
|
|
, gobject-introspection
|
2021-06-28 23:13:55 +00:00
|
|
|
, fribidi
|
2021-05-03 20:48:10 +00:00
|
|
|
, gtk4
|
2021-05-20 23:08:51 +00:00
|
|
|
, xvfb-run
|
2021-05-03 20:48:10 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "libadwaita";
|
2021-09-18 10:52:07 +00:00
|
|
|
version = "1.0.0-alpha.2";
|
2021-05-03 20:48:10 +00:00
|
|
|
|
|
|
|
outputs = [ "out" "dev" "devdoc" ];
|
2021-06-28 23:13:55 +00:00
|
|
|
outputBin = "devdoc"; # demo app
|
2021-05-03 20:48:10 +00:00
|
|
|
|
|
|
|
src = fetchFromGitLab {
|
|
|
|
domain = "gitlab.gnome.org";
|
|
|
|
owner = "GNOME";
|
|
|
|
repo = "libadwaita";
|
2021-06-28 23:13:55 +00:00
|
|
|
rev = version;
|
2021-09-18 10:52:07 +00:00
|
|
|
sha256 = "1yvjdzs5ipmr4gi0l4k6dkqhl9b090kpjc3ll8bv1a6i7yfaf53s";
|
2021-05-03 20:48:10 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
docbook-xsl-nons
|
2021-06-28 23:13:55 +00:00
|
|
|
gi-docgen
|
2021-05-03 20:48:10 +00:00
|
|
|
gtk-doc
|
2021-06-28 23:13:55 +00:00
|
|
|
libxml2 # for xmllint
|
2021-05-03 20:48:10 +00:00
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
pkg-config
|
|
|
|
sassc
|
|
|
|
vala
|
|
|
|
];
|
|
|
|
|
|
|
|
mesonFlags = [
|
|
|
|
"-Dgtk_doc=true"
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
2021-06-28 23:13:55 +00:00
|
|
|
fribidi
|
2021-05-03 20:48:10 +00:00
|
|
|
gobject-introspection
|
|
|
|
gtk4
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
2021-05-20 23:08:51 +00:00
|
|
|
xvfb-run
|
2021-05-03 20:48:10 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
xvfb-run meson test
|
|
|
|
'';
|
|
|
|
|
2021-06-28 23:13:55 +00:00
|
|
|
postInstall = ''
|
|
|
|
mv $out/share/{doc,gtk-doc}
|
|
|
|
'';
|
|
|
|
|
2021-05-03 20:48:10 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Library to help with developing UI for mobile devices using GTK/GNOME";
|
|
|
|
homepage = "https://gitlab.gnome.org/GNOME/libadwaita";
|
|
|
|
license = licenses.lgpl21Plus;
|
|
|
|
maintainers = with maintainers; [ dotlambda ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|