Files
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

72 lines
1.4 KiB
Nix
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{
stdenv,
lib,
replaceVars,
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.1.0";
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-/EpEi8yxoJtohlQJueKu0XHSii1ayA975E9fzKhO4ME=";
};
patches = [
# Make PyGObjects gi library available.
(replaceVars ./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
python3.pythonOnBuildForHost
];
buildInputs = [
python3
python3.pkgs.pygobject3
nautilus
];
passthru = {
updateScript = gnome.updateScript {
packageName = "nautilus-python";
};
};
meta = {
description = "Python bindings for the Nautilus Extension API";
homepage = "https://gitlab.gnome.org/GNOME/nautilus-python";
license = lib.licenses.gpl2Plus;
teams = [ lib.teams.gnome ];
platforms = lib.platforms.unix;
};
})