Skip to content

Instantly share code, notes, and snippets.

@Twey
Last active September 11, 2019 10:53
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save Twey/84fff5dff8e86c34a716b57fe883f289 to your computer and use it in GitHub Desktop.
# a.nix
{ newScope }:
newScope { a = "a"; } ./b.nix { }
# b.nix
{ newScope }:
newScope { b = "b"; } ./c.nix { }
# c.nix
{ a, b }: a + b
# default.nix
with import <nixpkgs> { };
callPackage ./c.nix { }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment