From 80f8607721e9c211bae9dbcdb7bac584812b7bf6 Mon Sep 17 00:00:00 2001 From: Sebastian Ullrich Date: Sat, 4 Dec 2021 17:03:10 +0100 Subject: [PATCH] xdot: needs graphviz in PATH --- pkgs/development/python-modules/xdot/default.nix | 4 ++++ pkgs/top-level/python-packages.nix | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/xdot/default.nix b/pkgs/development/python-modules/xdot/default.nix index e28deaf07d64..fa24256b6a00 100644 --- a/pkgs/development/python-modules/xdot/default.nix +++ b/pkgs/development/python-modules/xdot/default.nix @@ -15,6 +15,10 @@ buildPythonPackage rec { propagatedBuildInputs = [ gobject-introspection pygobject3 graphviz gtk3 numpy ]; checkInputs = [ xvfb-run ]; + postInstall = '' + wrapProgram "$out/bin/xdot" --prefix PATH : "${lib.makeBinPath [ graphviz ]}" + ''; + checkPhase = '' xvfb-run -s '-screen 0 800x600x24' ${python3.interpreter} nix_run_setup test ''; diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 3895ae338923..603eb138e2ff 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -10141,7 +10141,9 @@ in { xdis = callPackage ../development/python-modules/xdis { }; - xdot = callPackage ../development/python-modules/xdot { }; + xdot = callPackage ../development/python-modules/xdot { + inherit (pkgs) graphviz; + }; xenomapper = callPackage ../applications/science/biology/xenomapper { };