Sometimes I want to use a custom nixpkgs for my build. According to this post:
A channel is just a folder (or a tarball) with a default.nix that returns an attrset.
So the way to do this is by using the -I
flag.
nix-build -I nixpkgs=../nixpkgs openethereum-docker.nix