refactor: split flake.nix into muiltple files

This commit is contained in:
link2xt
2026-05-25 05:14:36 +02:00
parent 2aba6aa339
commit 9be14448aa
11 changed files with 370 additions and 411 deletions

15
nix/python-docs.nix Normal file
View File

@@ -0,0 +1,15 @@
{ pkgs, version, deltachat-python, deltachat-rpc-client }:
pkgs.stdenv.mkDerivation {
pname = "docs";
inherit version;
src = pkgs.lib.cleanSource ../.;
buildInputs = [
deltachat-python
deltachat-rpc-client
pkgs.python3Packages.breathe
pkgs.python3Packages.sphinx-rtd-theme
];
nativeBuildInputs = [ pkgs.sphinx ];
buildPhase = ''sphinx-build -b html -a python/doc/ dist/html'';
installPhase = ''mkdir -p $out; cp -av dist/html $out'';
}