2641d97cbf
Reproduction script: # Bulk rewrite ./maintainers/scripts/sha-to-sri.py pkgs/by-name # Revert some packages which will need manual intervention for n in amdvlk azure-cli cargo-profiler corefonts flatito fluxcd gist perf_data_converter protoc-gen-js solana-cli swt verible; do git checkout -- "pkgs/by-name/${n:0:2}/${n}" done
67 lines
1.4 KiB
Nix
67 lines
1.4 KiB
Nix
{ stdenv
|
|
, lib
|
|
, fetchFromGitHub
|
|
, meson
|
|
, pkg-config
|
|
, ninja
|
|
, glib
|
|
, gtk3
|
|
, nemo
|
|
, python3
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "nemo-python";
|
|
version = "6.2.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "linuxmint";
|
|
repo = "nemo-extensions";
|
|
rev = version;
|
|
hash = "sha256-qghGgd+OWYiXvcGUfgiQT6rR4mJPAOfOtYB3lWLg4iA=";
|
|
};
|
|
|
|
sourceRoot = "${src.name}/nemo-python";
|
|
|
|
patches = [
|
|
# Load extensions from NEMO_PYTHON_EXTENSION_DIR environment variable
|
|
# https://github.com/NixOS/nixpkgs/issues/78327
|
|
./load-extensions-from-env.patch
|
|
|
|
# Pick up all passthru.nemoPythonExtensionDeps via nemo-with-extensions wrapper
|
|
./python-path.patch
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
meson
|
|
pkg-config
|
|
ninja
|
|
];
|
|
|
|
buildInputs = [
|
|
glib
|
|
gtk3
|
|
nemo
|
|
python3
|
|
python3.pkgs.pygobject3
|
|
];
|
|
|
|
postPatch = ''
|
|
# Tries to load libpython3.so via g_module_open ().
|
|
substituteInPlace meson.build \
|
|
--replace "get_option('prefix'), get_option('libdir')" "'${python3}/lib'"
|
|
'';
|
|
|
|
PKG_CONFIG_LIBNEMO_EXTENSION_EXTENSIONDIR = "${placeholder "out"}/${nemo.extensiondir}";
|
|
|
|
passthru.nemoPythonExtensionDeps = [ python3.pkgs.pygobject3 ];
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/linuxmint/nemo-extensions/tree/master/nemo-python";
|
|
description = "Python bindings for the Nemo extension library";
|
|
license = licenses.gpl2Plus;
|
|
platforms = platforms.linux;
|
|
maintainers = teams.cinnamon.members;
|
|
};
|
|
}
|