2021-12-06 16:07:01 +00:00
|
|
|
|
{ stdenv
|
|
|
|
|
, lib
|
|
|
|
|
, substituteAll
|
2020-04-24 23:36:52 +00:00
|
|
|
|
, fetchurl
|
2022-10-21 18:38:19 +00:00
|
|
|
|
, meson
|
|
|
|
|
, ninja
|
2021-02-05 17:12:51 +00:00
|
|
|
|
, pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
|
, gtk-doc
|
2022-10-21 18:38:19 +00:00
|
|
|
|
, docbook-xsl-nons
|
2020-04-24 23:36:52 +00:00
|
|
|
|
, docbook_xml_dtd_412
|
|
|
|
|
, python3
|
|
|
|
|
, nautilus
|
2021-05-20 23:08:51 +00:00
|
|
|
|
, gnome
|
2020-04-24 23:36:52 +00:00
|
|
|
|
}:
|
|
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
|
pname = "nautilus-python";
|
2022-10-21 18:38:19 +00:00
|
|
|
|
version = "4.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
2022-10-21 18:38:19 +00:00
|
|
|
|
outputs = [ "out" "dev" "doc" "devdoc" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
|
|
src = fetchurl {
|
2022-10-21 18:38:19 +00:00
|
|
|
|
url = "mirror://gnome/sources/nautilus-python/${lib.versions.majorMinor version}/nautilus-python-${version}.tar.xz";
|
|
|
|
|
sha256 = "FyQ9Yut9fYOalGGrjQcBaIgFxxYaZwXmFBOljsJoKBo=";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
};
|
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
|
patches = [
|
|
|
|
|
# Make PyGObject’s gi library available.
|
|
|
|
|
(substituteAll {
|
|
|
|
|
src = ./fix-paths.patch;
|
|
|
|
|
pythonPaths = lib.concatMapStringsSep ", " (pkg: "'${pkg}/${python3.sitePackages}'") [
|
|
|
|
|
python3.pkgs.pygobject3
|
|
|
|
|
];
|
|
|
|
|
})
|
|
|
|
|
];
|
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
|
nativeBuildInputs = [
|
2021-02-05 17:12:51 +00:00
|
|
|
|
pkg-config
|
2022-10-21 18:38:19 +00:00
|
|
|
|
meson
|
|
|
|
|
ninja
|
2020-04-24 23:36:52 +00:00
|
|
|
|
gtk-doc
|
2022-10-21 18:38:19 +00:00
|
|
|
|
docbook-xsl-nons
|
2020-04-24 23:36:52 +00:00
|
|
|
|
docbook_xml_dtd_412
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
|
python3
|
|
|
|
|
python3.pkgs.pygobject3
|
|
|
|
|
nautilus
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
passthru = {
|
2021-05-20 23:08:51 +00:00
|
|
|
|
updateScript = gnome.updateScript {
|
2020-04-24 23:36:52 +00:00
|
|
|
|
packageName = pname;
|
2021-05-20 23:08:51 +00:00
|
|
|
|
attrPath = "gnome.${pname}";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
|
description = "Python bindings for the Nautilus Extension API";
|
|
|
|
|
homepage = "https://wiki.gnome.org/Projects/NautilusPython";
|
|
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
|
maintainers = teams.gnome.members;
|
|
|
|
|
platforms = platforms.unix;
|
|
|
|
|
};
|
|
|
|
|
}
|