depot/third_party/nixpkgs/pkgs/development/libraries/libpanel/default.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

73 lines
1.3 KiB
Nix

{
stdenv,
lib,
fetchurl,
meson,
ninja,
pkg-config,
gobject-introspection,
vala,
gi-docgen,
glib,
gtk4,
libadwaita,
gnome,
}:
stdenv.mkDerivation rec {
pname = "libpanel";
version = "1.6.0";
outputs = [
"out"
"dev"
"devdoc"
];
outputBin = "dev";
src = fetchurl {
url = "mirror://gnome/sources/libpanel/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
hash = "sha256-t3NJSjxpMANFzY4nAnRI0RiRgwJswTeAL4hkF8bqMLY=";
};
strictDeps = true;
depsBuildBuild = [ pkg-config ];
nativeBuildInputs = [
meson
ninja
pkg-config
gobject-introspection
vala
gi-docgen
gtk4 # gtk4-update-icon-cache
];
buildInputs = [
glib
gtk4
libadwaita
];
mesonFlags = [ (lib.mesonBool "install-examples" true) ];
postFixup = ''
# Cannot be in postInstall, otherwise _multioutDocs hook in preFixup will move right back.
moveToOutput "share/doc" "$devdoc"
'';
passthru = {
updateScript = gnome.updateScript { packageName = pname; };
};
meta = with lib; {
description = "Dock/panel library for GTK 4";
mainProgram = "libpanel-example";
homepage = "https://gitlab.gnome.org/GNOME/libpanel";
license = licenses.lgpl3Plus;
maintainers = teams.gnome.members;
platforms = platforms.unix;
};
}