nixpkgs/pkgs/development/libraries/libdex/default.nix
Bobby Rong 1949813ae3 libdex: 0.1.1 → 0.2.0
https://gitlab.gnome.org/GNOME/libdex/-/compare/0.1.1...0.2.0

Changelog-Reviewed-By: Jan Tojnar <jtojnar@gmail.com>
2023-04-06 01:35:28 +02:00

66 lines
1.1 KiB
Nix

{ stdenv
, lib
, fetchFromGitLab
, gi-docgen
, gobject-introspection
, meson
, ninja
, pkg-config
, vala
, glib
, liburing
, gnome
}:
stdenv.mkDerivation rec {
pname = "libdex";
version = "0.2.0";
outputs = [ "out" "dev" "devdoc" ];
src = fetchFromGitLab {
domain = "gitlab.gnome.org";
owner = "GNOME";
repo = "libdex";
rev = version;
sha256 = "54TwMdO29jordVqlBsMZOVtHc7s7ivf/4OkpCSNu7VE=";
};
nativeBuildInputs = [
gi-docgen
gobject-introspection
meson
ninja
pkg-config
vala
];
buildInputs = [
glib
liburing
];
mesonFlags = [
"-Ddocs=true"
];
doCheck = true;
postFixup = ''
# Cannot be in postInstall, otherwise _multioutDocs hook in preFixup will move right back.
moveToOutput "share/doc" "$devdoc"
'';
passthru.updateScript = gnome.updateScript {
packageName = "libdex";
};
meta = with lib; {
description = "Library supporting deferred execution for GNOME and GTK";
homepage = "https://gitlab.gnome.org/GNOME/libdex";
maintainers = teams.gnome.members;
platforms = platforms.linux;
license = licenses.lgpl21Plus;
};
}