From e2f42690cd8cdb020a662e17e94134737fd141dd Mon Sep 17 00:00:00 2001 From: Tom Prince <tom.prince@private.storage> Date: Fri, 1 Oct 2021 15:11:55 -0600 Subject: [PATCH] simpler build --- docs/docs.nix | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/docs/docs.nix b/docs/docs.nix index 03ac07df..67c0301c 100644 --- a/docs/docs.nix +++ b/docs/docs.nix @@ -1,6 +1,9 @@ -{ stdenv, lib, graphviz, plantuml, python3, sphinx }: +{ pkgs, stdenv, lib, graphviz, plantuml, python3, sphinx }: let - pyenv = python3.withPackages (ps: [ ps.sphinx ps.sphinxcontrib_plantuml ]); + pyenv = pkgs.buildEnv { + name = "sphinx-env"; + nativeBuildInputs = [ sphinx python3.pkgs.sphinxcontrib_plantuml ]; + }; in stdenv.mkDerivation rec { version = "0.0"; @@ -10,11 +13,10 @@ stdenv.mkDerivation rec { phases = [ "unpackPhase" "buildPhase" ]; depsBuildBuild = [ - graphviz - plantuml + pyenv ]; buildPhase = '' - ${pyenv}/bin/sphinx-build -W docs/source $out/docs + sphinx-build -W docs/source $out/docs ''; } -- GitLab