567e8dfd8e
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>
72 lines
1.4 KiB
Nix
72 lines
1.4 KiB
Nix
{
|
||
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 PyGObject’s 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;
|
||
};
|
||
})
|