mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-20 03:43:45 +00:00
571c71e6f7
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.
76 lines
1.3 KiB
Nix
76 lines
1.3 KiB
Nix
{
|
|
stdenv,
|
|
lib,
|
|
fetchurl,
|
|
docbook-xsl-nons,
|
|
glib,
|
|
gobject-introspection,
|
|
gtk-doc,
|
|
meson,
|
|
ninja,
|
|
pkg-config,
|
|
vala,
|
|
mesonEmulatorHook,
|
|
gtk3,
|
|
icu,
|
|
enchant2,
|
|
gnome,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "gspell";
|
|
version = "1.14.0";
|
|
|
|
outputs = [
|
|
"out"
|
|
"dev"
|
|
"devdoc"
|
|
];
|
|
|
|
outputBin = "dev";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
|
sha256 = "ZOodjp7cHCW0WpIOgNr2dVnRhm/81/hDL+z+ptD+iJc=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
docbook-xsl-nons
|
|
glib # glib-mkenums
|
|
gobject-introspection
|
|
gtk-doc
|
|
meson
|
|
ninja
|
|
pkg-config
|
|
vala
|
|
] ++ lib.optionals (!stdenv.buildPlatform.canExecute stdenv.hostPlatform) [
|
|
mesonEmulatorHook
|
|
];
|
|
|
|
buildInputs = [
|
|
gtk3
|
|
icu
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
# required for pkg-config
|
|
enchant2
|
|
];
|
|
|
|
passthru = {
|
|
updateScript = gnome.updateScript {
|
|
packageName = pname;
|
|
versionPolicy = "none";
|
|
};
|
|
};
|
|
|
|
meta = with lib; {
|
|
description = "Spell-checking library for GTK applications";
|
|
mainProgram = "gspell-app1";
|
|
homepage = "https://gitlab.gnome.org/GNOME/gspell";
|
|
license = licenses.lgpl21Plus;
|
|
maintainers = teams.gnome.members;
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|