summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/python-sql
diff options
context:
space:
mode:
authorBas van Dijk <v.dijk.bas@gmail.com>2019-06-23 21:11:49 +0200
committerBas van Dijk <v.dijk.bas@gmail.com>2019-06-23 22:13:57 +0200
commit76ef802d3d60cc4d199f19ba69e8bcfe63b88e7b (patch)
tree69818ff85afb45eb3cdae85f8e3849a0c104be07 /pkgs/development/python-modules/python-sql
parentba7e7aed08740f5a33e3ef1fa56e4c591af85dc0 (diff)
mkShell: compose shellHooks
Running the following expression with nix-shell: let pkgs = import <nixpkgs> {}; shell1 = pkgs.mkShell { shellHook = '' echo shell1 ''; }; shell2 = pkgs.mkShell { shellHook = '' echo shell2 ''; }; shell3 = pkgs.mkShell { inputsFrom = [ shell1 shell2 ]; shellHook = '' echo shell3 ''; }; in shell3 Will now results in: shell2 shell1 shell3 Note that packages in the front of inputsFrom have precedence over packages in the back. The outermost mkShell has precedence over all.
Diffstat (limited to 'pkgs/development/python-modules/python-sql')
0 files changed, 0 insertions, 0 deletions