nixpkgs/pkgs/by-name/li/libspelling/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

68 lines
1.3 KiB
Nix

{ lib
, stdenv
, fetchFromGitLab
, meson
, ninja
, pkg-config
, gobject-introspection
, vala
, gi-docgen
, glib
, gtk4
, gtksourceview5
, enchant
, icu
, libsysprof-capture
, gnome
}:
stdenv.mkDerivation rec {
pname = "libspelling";
version = "0.4.4";
outputs = [ "out" "dev" "devdoc" ];
src = fetchFromGitLab {
domain = "gitlab.gnome.org";
owner = "GNOME";
repo = "libspelling";
rev = version;
hash = "sha256-6ggegeDR4UBP2LKn6lj0pOB1Iz7MwLEf9usIB28SEMA=";
};
nativeBuildInputs = [
meson
ninja
pkg-config
gobject-introspection
vala
gi-docgen
];
buildInputs = [
glib
gtk4
gtksourceview5
enchant
icu
libsysprof-capture
];
postFixup = ''
# Cannot be in postInstall, otherwise _multioutDocs hook in preFixup will move right back.
moveToOutput "share/doc" "$devdoc"
'';
passthru.updateScript = gnome.updateScript {
packageName = "libspelling";
};
meta = with lib; {
description = "Spellcheck library for GTK 4";
homepage = "https://gitlab.gnome.org/GNOME/libspelling";
license = licenses.lgpl21Plus;
changelog = "https://gitlab.gnome.org/GNOME/libspelling/-/raw/${version}/NEWS";
maintainers = with maintainers; [ chuangzhu ] ++ teams.gnome.members;
};
}