pinning nixpkgs

nix-shell -I <path-to-your-nixpkgs>

or use niv.