Show More
@@ -142,7 +142,7 b' let' | |||||
142 | mkdir -p $out/bin |
|
142 | mkdir -p $out/bin | |
143 |
|
143 | |||
144 | # expose python |
|
144 | # expose python | |
145 |
ln -s ${s |
|
145 | ln -s ${pkgs.pythonWithSetuptools}/bin/python $out/bin/ | |
146 |
|
146 | |||
147 | # required binaries from dependencies |
|
147 | # required binaries from dependencies | |
148 | ln -s ${self.gunicorn}/bin/gunicorn $out/bin/ |
|
148 | ln -s ${self.gunicorn}/bin/gunicorn $out/bin/ |
@@ -14,4 +14,12 b' rec {' | |||||
14 | pythonPackages; |
|
14 | pythonPackages; | |
15 | }; |
|
15 | }; | |
16 |
|
16 | |||
|
17 | pip-tools = pythonPackages.pip-tools; | |||
|
18 | ||||
|
19 | setuptools = pythonPackages.setuptools; | |||
|
20 | ||||
|
21 | wheel = pythonPackages.wheel; | |||
|
22 | ||||
|
23 | pip = pythonPackages.pip; | |||
|
24 | ||||
17 | } |
|
25 | } |
@@ -1,5 +1,9 b'' | |||||
1 | self: super: { |
|
1 | self: super: { | |
2 |
|
2 | |||
|
3 | pythonWithSetuptools = self.python.withPackages(ps: with ps; [ | |||
|
4 | setuptools | |||
|
5 | ]); | |||
|
6 | ||||
3 | # change GIT version |
|
7 | # change GIT version | |
4 | # latest supported are in: https://github.com/NixOS/nixpkgs/tree/master/pkgs/applications/version-management/git-and-tools/git |
|
8 | # latest supported are in: https://github.com/NixOS/nixpkgs/tree/master/pkgs/applications/version-management/git-and-tools/git | |
5 | git = super.lib.overrideDerivation super.git (oldAttrs: { |
|
9 | git = super.lib.overrideDerivation super.git (oldAttrs: { | |
@@ -68,5 +72,4 b' self: super: {' | |||||
68 |
|
72 | |||
69 | }); |
|
73 | }); | |
70 |
|
74 | |||
71 |
|
||||
72 | } |
|
75 | } |
@@ -26,7 +26,9 b' pkgs.stdenv.mkDerivation {' | |||||
26 | buildInputs = [ |
|
26 | buildInputs = [ | |
27 | # Allows to generate python packages |
|
27 | # Allows to generate python packages | |
28 | pip2nix.pip2nix |
|
28 | pip2nix.pip2nix | |
29 | pythonPackages.pip-tools |
|
29 | pip2nix.pip | |
|
30 | pip2nix.pip-tools | |||
|
31 | ||||
30 | # compile using ffi |
|
32 | # compile using ffi | |
31 | pkgs.libffi |
|
33 | pkgs.libffi | |
32 |
|
34 | |||
@@ -49,11 +51,10 b' pkgs.stdenv.mkDerivation {' | |||||
49 | export TMPDIR=/tmp |
|
51 | export TMPDIR=/tmp | |
50 | export LOCALE_ARCHIVE="${pkgs.glibcLocales}/lib/locale/locale-archive" |
|
52 | export LOCALE_ARCHIVE="${pkgs.glibcLocales}/lib/locale/locale-archive" | |
51 | export LC_ALL="en_US.UTF-8" |
|
53 | export LC_ALL="en_US.UTF-8" | |
|
54 | export PYCURL_SSL_LIBRARY=openssl | |||
52 |
|
55 | |||
53 | # Custom prompt to distinguish from other dev envs. |
|
56 | # Custom prompt to distinguish from other dev envs. | |
54 | export PS1="\n\[\033[1;32m\][pip2nix-generate-shell]$\[\033[0m\] " |
|
57 | export PS1="\n\[\033[1;32m\][pip2nix-generate-shell]$\[\033[0m\] " | |
55 |
|
58 | |||
56 | export PYCURL_SSL_LIBRARY=openssl |
|
|||
57 |
|
||||
58 | ''; |
|
59 | ''; | |
59 | } |
|
60 | } |
General Comments 0
You need to be logged in to leave comments.
Login now