mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-03 20:33:21 +00:00
554fcd563d
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>
66 lines
1.1 KiB
Nix
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;
|
|
};
|
|
}
|