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



                                
                      
                  
                                                                                            
                                                                    
    
                                                    





                                                
                                                           




                                               
{ stdenv, lib, fetchurl }:

stdenv.mkDerivation rec {
  name = "powerstat-${version}";
  version = "0.02.19";
  src = fetchurl {
    url = "https://kernel.ubuntu.com/~cking/tarballs/powerstat/powerstat-${version}.tar.gz";
    sha256 = "0yh6l2mx5gfdgrfx406hxbi03c12cgi29pwlzgdfrpz6zs2icaw5";
  };
  installFlags = [ "DESTDIR=${placeholder "out"}" ];
  postInstall = ''
    mv $out/usr/* $out
    rm -r $out/usr
  '';
  meta = with lib; {
    description = "Laptop power measuring tool";
    homepage = https://kernel.ubuntu.com/~cking/powerstat/;
    license = licenses.gpl2;
    platforms = platforms.linux;
    maintainers = with maintainers; [ womfoo ];
  };
}