depot/third_party/nixpkgs/pkgs/development/libraries/libadwaita/default.nix
Default email 88abffb7d2 Project import generated by Copybara.
GitOrigin-RevId: bc9b956714ed6eac5f8888322aac5bc41389defa
2021-09-18 12:52:07 +02:00

77 lines
1.2 KiB
Nix

{ lib
, stdenv
, fetchFromGitLab
, docbook-xsl-nons
, gi-docgen
, gtk-doc
, libxml2
, meson
, ninja
, pkg-config
, sassc
, vala
, gobject-introspection
, fribidi
, gtk4
, xvfb-run
}:
stdenv.mkDerivation rec {
pname = "libadwaita";
version = "1.0.0-alpha.2";
outputs = [ "out" "dev" "devdoc" ];
outputBin = "devdoc"; # demo app
src = fetchFromGitLab {
domain = "gitlab.gnome.org";
owner = "GNOME";
repo = "libadwaita";
rev = version;
sha256 = "1yvjdzs5ipmr4gi0l4k6dkqhl9b090kpjc3ll8bv1a6i7yfaf53s";
};
nativeBuildInputs = [
docbook-xsl-nons
gi-docgen
gtk-doc
libxml2 # for xmllint
meson
ninja
pkg-config
sassc
vala
];
mesonFlags = [
"-Dgtk_doc=true"
];
buildInputs = [
fribidi
gobject-introspection
gtk4
];
checkInputs = [
xvfb-run
];
doCheck = true;
checkPhase = ''
xvfb-run meson test
'';
postInstall = ''
mv $out/share/{doc,gtk-doc}
'';
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;
};
}