mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-01 02:23:54 +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.
52 lines
1.2 KiB
Nix
52 lines
1.2 KiB
Nix
{ fetchurl, lib, stdenv, pkg-config, intltool, glib, gtk3, lasem
|
|
, libgsf, libxml2, libxslt, cairo, pango, librsvg, gnome
|
|
, autoreconfHook
|
|
, gtk-doc
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "goffice";
|
|
version = "0.10.57";
|
|
|
|
outputs = [ "out" "dev" "devdoc" ];
|
|
|
|
src = fetchurl {
|
|
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
|
hash = "sha256-Zr/X4x0vZ1bVpiw2cDg8u6ArPLTBBClQGSqAG3Kjyas=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config intltool autoreconfHook gtk-doc
|
|
glib # for glib-genmarshal
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
glib gtk3 libxml2 cairo pango libgsf lasem
|
|
];
|
|
|
|
buildInputs = [ libxslt librsvg ];
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
passthru = {
|
|
updateScript = gnome.updateScript {
|
|
packageName = pname;
|
|
versionPolicy = "odd-unstable";
|
|
};
|
|
};
|
|
|
|
meta = {
|
|
description = "Glib/GTK set of document centric objects and utilities";
|
|
|
|
longDescription = ''
|
|
There are common operations for document centric applications that are
|
|
conceptually simple, but complex to implement fully: plugins, load/save
|
|
documents, undo/redo.
|
|
'';
|
|
|
|
license = lib.licenses.gpl2Plus;
|
|
|
|
platforms = lib.platforms.unix;
|
|
};
|
|
}
|