nixpkgs/pkgs/development/libraries/libdex/default.nix
Bobby Rong 554fcd563d libdex: 0.4.0 → 0.4.1
https://gitlab.gnome.org/GNOME/libdex/-/compare/0.4.0...0.4.1

Changelog-reviewed-by: Bobby Rong <rjl931189261@126.com>
Changelog-reviewed-by: Jan Tojnar <jtojnar@gmail.com>
2023-11-21 08:42:40 +01: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.4.1";
outputs = [ "out" "dev" "devdoc" ];
src = fetchFromGitLab {
domain = "gitlab.gnome.org";
owner = "GNOME";
repo = "libdex";
rev = version;
sha256 = "e2Q3KhdMqvMeVVZZKQfVoc3BqbOcUYEnBBG24FJRI1k=";
};
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;
};
}