depot/third_party/nixpkgs/pkgs/development/libraries/libadwaita/default.nix
Default email 841d9c7fc1 Project import generated by Copybara.
GitOrigin-RevId: 3a8d7958a610cd3fec3a6f424480f91a1b259185
2021-06-29 00:13:55 +01: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.1";
outputs = [ "out" "dev" "devdoc" ];
outputBin = "devdoc"; # demo app
src = fetchFromGitLab {
domain = "gitlab.gnome.org";
owner = "GNOME";
repo = "libadwaita";
rev = version;
sha256 = "1v52md62kaqykv8b6kxxbxwnbdzlda4ir7n5wh2iizadcailyw7p";
};
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;
};
}