nixpkgs/pkgs/by-name/li/libpanel/package.nix
aleksana 571c71e6f7 treewide: migrate packages to pkgs/by-name, take 1
We are migrating packages that meet below requirements:

1. using `callPackage`
2. called path is a directory
3. overriding set is empty (`{ }`)
4. not containing path expressions other than relative path (to
makenixpkgs-vet happy)
5. not referenced by nix files outside of the directory, other
than`pkgs/top-level/all-packages.nix`
6. not referencing nix files outside of the directory
7. not referencing `default.nix` (since it's changed to `package.nix`)
8. `outPath` doesn't change after migration

The tool is here: https://github.com/Aleksanaa/by-name-migrate.
2024-11-09 20:04:51 +08:00

74 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.8.1";
outputs = [
"out"
"dev"
"devdoc"
];
outputBin = "dev";
src = fetchurl {
url = "mirror://gnome/sources/libpanel/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
hash = "sha256-uHuPqbeXaMxwQkN5PwFYoECh5G03uYiRiFRaf33Kpvs=";
};
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;
};
}