From d700803323c20c8c5657eaf47d3214870fbeedce Mon Sep 17 00:00:00 2001 From: Kier Davis Date: Mon, 11 Mar 2019 13:43:49 +0000 Subject: [PATCH] pius: fix dependencies `perl` needs to be a native build input to ensure that it is present in `PATH` during the build, allowing `patchShebangs` to correctly fix the shebang in `pius-party-worksheet`. Previously, the shebang was left as `/usr/bin/perl` because `perl` could not be found by `patchShebangs`. `six` is a required dependency of `pius` and likely should have been included in the derivation a long time ago, since the `pius`, `pius-report` and `pius-keyring-mgr` commands are broken without it. Annoyingly, `pius` still uses `distutils` rather than `setuptools` which seems to happily install the package without checking that its dependencies have been installed. --- pkgs/tools/security/pius/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/tools/security/pius/default.nix b/pkgs/tools/security/pius/default.nix index 2a48bf2c2c6c..0fcf5d9a7992 100644 --- a/pkgs/tools/security/pius/default.nix +++ b/pkgs/tools/security/pius/default.nix @@ -18,7 +18,8 @@ pythonPackages.buildPythonApplication { done ''; - buildInputs = [ perl ]; + nativeBuildInputs = [ perl ]; + propagatedBuildInputs = with pythonPackages; [ six ]; meta = { homepage = https://www.phildev.net/pius/;