nixpkgs/pkgs/by-name/gn/gnumeric/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

45 lines
1.2 KiB
Nix

{ lib, stdenv, fetchurl, pkg-config, intltool, perlPackages
, goffice, gnome, adwaita-icon-theme, wrapGAppsHook3, gtk3, bison, python3Packages
, itstool
}:
let
inherit (python3Packages) python pygobject3;
in stdenv.mkDerivation rec {
pname = "gnumeric";
version = "1.12.57";
src = fetchurl {
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
sha256 = "r/ULG2I0DCT8z0U9X60+f7c/S8SzT340tsPS2a9qHk8=";
};
configureFlags = [ "--disable-component" ];
nativeBuildInputs = [ pkg-config intltool bison itstool wrapGAppsHook3 ];
# ToDo: optional libgda, introspection?
buildInputs = [
goffice gtk3 adwaita-icon-theme
python pygobject3
] ++ (with perlPackages; [ perl XMLParser ]);
enableParallelBuilding = true;
passthru = {
updateScript = gnome.updateScript {
packageName = pname;
versionPolicy = "odd-unstable";
};
};
meta = with lib; {
description = "GNOME Office Spreadsheet";
license = lib.licenses.gpl2Plus;
homepage = "http://projects.gnome.org/gnumeric/";
platforms = platforms.unix;
broken = with stdenv; isDarwin && isAarch64;
maintainers = [ maintainers.vcunat ];
};
}