Skip to content

Instantly share code, notes, and snippets.

@Twey
Last active September 11, 2019 10:53
# 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