How do I get the hash for a Git overlay?

I’m trying to install rev. 60 of Emacspeak.

nixpkgs.overlays = [                                                          
  (self: super: {                                                             
    emacsPackages = super.emacsPackages // {                                  
      emacspeak = super.emacsPackages.emacspeak.overrideAttrs (oldAttrs: rec {
        src = self.fetchgit {                                                 
          url = "https://github.com/tvraman/emacspeak.git";                   
          rev = "60.0";                                                       
          sha256 = "0sjjj9z1dhilhpc8pq4154czrb79z9cm044jvn75kxcjv6v5l2m5";    
        };                                                                    
      });                                                                     
    };                                                                        
  })                                                                          
  (self: super: {                                                             
    emacsWithConfig = super.emacsWithPackages (epkgs:                         
      (with epkgs.melpaPackages; [                                            
        self.emacsPackages.emacspeak                                          
      ])                                                                      
    );                                                                        
  })                                                                          
];                                                                            

I’m not really sure if I got the correct SHA; what is the correct procedure to get the correct SHA?:wink:

Use hash = "";, rebuild, get the hash from the error.
Also you really should use fetchFromGitHub over fetchgit if possible

Great; thanks, but I can’t query this directly from the git repo?