nixpkgs/pkgs
Bas van Dijk 76ef802d3d 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.
2019-06-23 22:13:57 +02:00
..
applications flexget: 2.21.2 -> 2.21.8 2019-06-23 15:02:41 +02:00
build-support mkShell: compose shellHooks 2019-06-23 22:13:57 +02:00
common-updater common-updater-scripts: simplify fetchgit fix 2019-06-02 09:31:51 +02:00
data unifont_upper: 12.1.01 -> 12.1.02 2019-06-23 14:14:21 +02:00
desktops Update deepin packages (#63652) 2019-06-22 22:40:11 +02:00
development python.pkgs.soundfile: 0.9.0.post1 -> 0.10.2 2019-06-23 15:32:19 +02:00
games enyo-doom: 1.06 -> 1.06.9 2019-06-23 14:57:16 +02:00
misc vimPlugins.camelcasemotion: init at 2019-06-06 (#63683) 2019-06-23 13:02:48 +01:00
os-specific linux: 5.2-rc5 -> 5.2-rc6 2019-06-23 07:38:23 -04:00
servers neo4j: 3.5.5 -> 3.5.6 2019-06-23 14:55:22 +02:00
shells oh-my-zsh: 2019-06-15 -> 2019-06-15 2019-06-19 08:54:10 -04:00
stdenv treewide: remove unused variables (#63177) 2019-06-16 19:59:05 +00:00
test treewide: remove unused variables (#63177) 2019-06-16 19:59:05 +00:00
tools openapi-generator-cli: 4.0.0 -> 4.0.1 2019-06-23 15:01:58 +02:00
top-level python.pkgs.soundfile: 0.9.0.post1 -> 0.10.2 2019-06-23 15:32:19 +02:00