This is an example of how to pin the version of nixpkgs in a package repo. The goal is to improve reproducibility, make sure all the developers use the same version of nixpkgs and also allow to share binary caches.
Put all these files in a nixpkgs
folder and then in other derivations, instead of import <nixpkgs> {}
use import ./path/to/nixpkgs {}