summary refs log blame commit diff
path: root/pkgs/os-specific/linux/hd-idle/default.nix
blob: 13cb397b1798035a6b896df6b791d47a473da6ac (plain) (tree)
1
2
3
4
5
6
7
8
9
10
                                                           
 
                   
                    
                   
 



                         
                                                                   

    
                    

                                            
 


                                   
 
                    
                                                                          

                                                     
                                
                                        

    
{ lib, buildGoModule, fetchFromGitHub, installShellFiles }:

buildGoModule rec {
  pname = "hd-idle";
  version = "1.21";

  src = fetchFromGitHub {
    owner = "adelolmo";
    repo = pname;
    rev = "v${version}";
    sha256 = "sha256-WHJcysTN9LHI1WnDuFGTyTirxXirpLpJIeNDj4sZGY0=";
  };

  vendorHash = null;

  nativeBuildInputs = [ installShellFiles ];

  postInstall = ''
    installManPage debian/hd-idle.8
  '';

  meta = with lib; {
    description = "Spins down external disks after a period of idle time";
    homepage = "https://github.com/adelolmo/hd-idle";
    license = licenses.gpl3Plus;
    platforms = platforms.linux;
    maintainers = [ maintainers.rycee ];
  };
}