mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 09:53:10 +00:00
c7c4be759d
- Format with nixpkgs-fmt - Convert to finalAttrs pattern
72 lines
1.4 KiB
Nix
72 lines
1.4 KiB
Nix
{
|
||
stdenv,
|
||
lib,
|
||
substituteAll,
|
||
fetchurl,
|
||
meson,
|
||
ninja,
|
||
pkg-config,
|
||
gtk-doc,
|
||
docbook-xsl-nons,
|
||
docbook_xml_dtd_412,
|
||
python3,
|
||
nautilus,
|
||
gnome,
|
||
}:
|
||
|
||
stdenv.mkDerivation (finalAttrs:{
|
||
pname = "nautilus-python";
|
||
version = "4.0.1";
|
||
|
||
outputs = [
|
||
"out"
|
||
"dev"
|
||
"doc"
|
||
"devdoc"
|
||
];
|
||
|
||
src = fetchurl {
|
||
url = "mirror://gnome/sources/nautilus-python/${lib.versions.majorMinor finalAttrs.version}/nautilus-python-${finalAttrs.version}.tar.xz";
|
||
hash = "sha256-/EnBBPsyoK0ZWmawE2eEzRnRDYs+jVnV7n9z6PlOko8=";
|
||
};
|
||
|
||
patches = [
|
||
# Make PyGObject’s gi library available.
|
||
(substituteAll {
|
||
src = ./fix-paths.patch;
|
||
pythonPaths = lib.concatMapStringsSep ", " (pkg: "'${pkg}/${python3.sitePackages}'") [
|
||
python3.pkgs.pygobject3
|
||
];
|
||
})
|
||
];
|
||
|
||
nativeBuildInputs = [
|
||
pkg-config
|
||
meson
|
||
ninja
|
||
gtk-doc
|
||
docbook-xsl-nons
|
||
docbook_xml_dtd_412
|
||
];
|
||
|
||
buildInputs = [
|
||
python3
|
||
python3.pkgs.pygobject3
|
||
nautilus
|
||
];
|
||
|
||
passthru = {
|
||
updateScript = gnome.updateScript {
|
||
packageName = "nautilus-python";
|
||
};
|
||
};
|
||
|
||
meta = with lib; {
|
||
description = "Python bindings for the Nautilus Extension API";
|
||
homepage = "https://gitlab.gnome.org/GNOME/nautilus-python";
|
||
license = licenses.gpl2Plus;
|
||
maintainers = teams.gnome.members;
|
||
platforms = platforms.unix;
|
||
};
|
||
})
|