Re: [Nix-dev] mix bundlerEnv and python3.buildEnv

2016-06-15 Thread Daniel Hlynskyi
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

Re: [Nix-dev] mix bundlerEnv and python3.buildEnv

2016-05-06 Thread Maksim Bronsky
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

Re: [Nix-dev] mix bundlerEnv and python3.buildEnv

2016-05-05 Thread zimbatm
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

Re: [Nix-dev] mix bundlerEnv and python3.buildEnv

2016-05-04 Thread Rok Garbas
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

[Nix-dev] mix bundlerEnv and python3.buildEnv

2016-05-04 Thread Maksim Bronsky
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.