Are you using home-manager to install and configure software? Do you have a need to pin specific software versions?
First step is to select the build version of the software. You can go directly to GitHub or any site that distributes the archive of the build. I typically use https://lazamar.co.uk/nix-versions/?channel=nixos-25.05 to search for package URLs. Once you identify the build version you require, use nix-prefetch-url --type sha256 to retrieve and hash the software package.
{ pkgs, ... }:
let