Skip to content

Instantly share code, notes, and snippets.

@theNerd247
Last active February 20, 2018 23:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save theNerd247/d2d24f3860c54877987656eb930c3d47 to your computer and use it in GitHub Desktop.
Save theNerd247/d2d24f3860c54877987656eb930c3d47 to your computer and use it in GitHub Desktop.
merging of sub nix-shells into a toplevel shell
(import ./dev.nix).breeze-login.env
{pkgs ? import <nixpkgs> {}}:
let
mkInputs = pkg:
builtins.map (x: x.outPath) (import "./${pkg}/shell.nix").buildInputs;
in
pkgs.stdenv.mkDerivation {
name="breeze-shell";
buildInputs = mkInputs "breeze-login" ++ mkInputs "ui";
src = ./.;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment