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 {}
Run the path/to/nixpkgs/update
script to pull the latest version on the channel. The channel is hard-coded in the script.
This seems to do the trick with current nixpkgs:
Get the name and URL:
Add the checksum:
Example result: