Reason why patchShebangs doesn't work here is because `python` executable
is not accessible in the environment. Instead python is called `python3`.
So if your script used #!/usr/bin/env python3, your first example would had
worked as expected.
I think this is bug with nixpkgs python environment, p
Hi,
just as a follow-up how I solved it:
I changed the postPatch hook to explicitly substitute the shebang with the
version I included as a buildInput:
sensu-plugins-mongodb = attrs: {
buildInputs = [ pyenv ];
postPatch = ''
# the ruby check runs a python script
# pa
Or if the dependency is a runtime dependency then maybe create another
pkgs.buildEnv that merges both environments.
On Thu, 5 May 2016 at 00:25 Rok Garbas wrote:
> Hi Maxim,
>
> i think you will have to adjust ``bundlerEnv`` to be able to "merge"
> it with ``pythonPackages.buildEnv``. or write y
Hi Maxim,
i think you will have to adjust ``bundlerEnv`` to be able to "merge"
it with ``pythonPackages.buildEnv``. or write your own custom buildEnv
based on both bundlerEnv and pythonPackages.buildEnv.
On Tue, May 3, 2016 at 8:42 PM, Maksim Bronsky wrote:
> Hello list,
>
> this is my hello wo
Hello list,
this is my hello world :)
I am adding some monitor checks to sensu, most of them are in ruby, but some
are in other, ‘foreign’ languages like the check for mongodb I am interested
in. Adding a python3.buildEnv to bundlerEnv drives me crazy.
In [1] you see the whole nix-expression.