forked from mirrors/nixpkgs
libportal: 0.4 → 0.5
https://github.com/flatpak/libportal/releases/tag/0.5
This commit is contained in:
parent
7edebd90e8
commit
5038552e28
|
@ -4,42 +4,66 @@
|
|||
, meson
|
||||
, ninja
|
||||
, pkg-config
|
||||
, gtk-doc
|
||||
, docbook-xsl-nons
|
||||
, docbook_xml_dtd_45
|
||||
, gobject-introspection
|
||||
, vala
|
||||
, gi-docgen
|
||||
, glib
|
||||
, gtk3
|
||||
, gtk4
|
||||
, libsForQt5
|
||||
, variant ? null
|
||||
}:
|
||||
|
||||
assert variant == null || variant == "gtk3" || variant == "gtk4" || variant == "qt5";
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "libportal";
|
||||
version = "0.4";
|
||||
pname = "libportal" + lib.optionalString (variant != null) "-${variant}";
|
||||
version = "0.5";
|
||||
|
||||
outputs = [ "out" "dev" "devdoc" ];
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "flatpak";
|
||||
repo = pname;
|
||||
repo = "libportal";
|
||||
rev = version;
|
||||
sha256 = "fuYZWGkdazq6H0rThqpF6KIcvwgc17o+CiISb1LjBso=";
|
||||
sha256 = "oPPO2f6NNeok0SGh4jELkkOP6VUxXZiwPM/n6CUHm0Q=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
meson
|
||||
ninja
|
||||
pkg-config
|
||||
gtk-doc
|
||||
docbook-xsl-nons
|
||||
docbook_xml_dtd_45
|
||||
gi-docgen
|
||||
] ++ lib.optionals (variant != "qt5") [
|
||||
gobject-introspection
|
||||
vala
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
glib
|
||||
] ++ lib.optionals (variant == "gtk3") [
|
||||
gtk3
|
||||
] ++ lib.optionals (variant == "gtk4") [
|
||||
gtk4
|
||||
] ++ lib.optionals (variant == "qt5") [
|
||||
libsForQt5.qtbase
|
||||
];
|
||||
|
||||
mesonFlags = [
|
||||
"-Dbackends=${lib.optionalString (variant != null) variant}"
|
||||
"-Dvapi=${if variant != "qt5" then "true" else "false"}"
|
||||
"-Dintrospection=${if variant != "qt5" then "true" else "false"}"
|
||||
];
|
||||
|
||||
postFixup = ''
|
||||
# Cannot be in postInstall, otherwise _multioutDocs hook in preFixup will move right back.
|
||||
moveToOutput "share/doc" "$devdoc"
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Flatpak portal library";
|
||||
homepage = "https://github.com/flatpak/libportal";
|
||||
license = licenses.lgpl2Plus;
|
||||
license = licenses.lgpl3Plus;
|
||||
maintainers = with maintainers; [ jtojnar ];
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
|
|
|
@ -7452,6 +7452,9 @@ with pkgs;
|
|||
libpointmatcher = callPackage ../development/libraries/libpointmatcher { };
|
||||
|
||||
libportal = callPackage ../development/libraries/libportal { };
|
||||
libportal-gtk3 = libportal.override { variant = "gtk3"; };
|
||||
libportal-gtk4 = libportal.override { variant = "gtk4"; };
|
||||
libportal-qt5 = libportal.override { variant = "qt5"; };
|
||||
|
||||
libmicrodns = callPackage ../development/libraries/libmicrodns { };
|
||||
|
||||
|
|
Loading…
Reference in a new issue