mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-06 17:13:24 -05:00
- split sub-packages into separate derivations - use finalAttrs - inherit meta attributes
46 lines
813 B
Nix
46 lines
813 B
Nix
{
|
|
python3Packages,
|
|
callPackage,
|
|
wox,
|
|
writableTmpDirAsHomeHook,
|
|
}:
|
|
python3Packages.buildPythonApplication (finalAttrs: {
|
|
pname = "wox-plugin-host-python";
|
|
inherit (wox) version src;
|
|
pyproject = true;
|
|
|
|
sourceRoot = "${finalAttrs.src.name}/wox.plugin.host.python";
|
|
|
|
build-system = with python3Packages; [
|
|
hatchling
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
writableTmpDirAsHomeHook
|
|
];
|
|
|
|
buildInputs = with python3Packages; [
|
|
loguru
|
|
websockets
|
|
finalAttrs.passthru.plugin-python
|
|
];
|
|
|
|
dependencies = with python3Packages; [
|
|
loguru
|
|
websockets
|
|
finalAttrs.passthru.plugin-python
|
|
];
|
|
|
|
passthru = {
|
|
plugin-python = callPackage ./plugin-python.nix { };
|
|
};
|
|
|
|
meta = {
|
|
inherit (wox.meta)
|
|
description
|
|
homepage
|
|
license
|
|
maintainers
|
|
;
|
|
};
|
|
})
|