summary refs log blame commit diff
path: root/pkgs/os-specific/linux/power-calibrate/default.nix
blob: 884b2d0e01cdd79927e82d911b3c1b2054d89499 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
                                 


                            
                      
 




                                                                 
    
 


                                                
                                                                    
    
 

                                                        
                                                                 




                                                
{ stdenv, lib, fetchFromGitHub }:

stdenv.mkDerivation rec {
  pname = "power-calibrate";
  version = "0.01.34";

  src = fetchFromGitHub {
    owner = "ColinIanKing";
    repo = pname;
    rev = "V${version}";
    hash = "sha256-T2fCTE+snNt1ylOpVR0JfT2x0lWrgItpfjtUx/zjaQw=";
  };

  installFlags = [
    "BINDIR=${placeholder "out"}/bin"
    "MANDIR=${placeholder "out"}/share/man/man8"
    "BASHDIR=${placeholder "out"}/share/bash-completion/completions"
  ];

  meta = with lib; {
    description = "Tool to calibrate power consumption";
    homepage = "https://github.com/ColinIanKing/power-calibrate";
    license = licenses.gpl2;
    platforms = platforms.linux;
    maintainers = with maintainers; [ dtzWill ];
  };
}