Hacker symbol

November 11, 2020 ~ 1 min read

Custom Nixpkgs


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

Sebastian BolaƱos

Hi, I'm Sebastian. I'm a software developer from Costa Rica. You can follow me on Twitter. I enjoy working on trustless systems.