powerstat: 0.02.25 -> 0.02.27

(#151442)
This commit is contained in:
Renaud 2021-12-21 22:53:22 +01:00 committed by GitHub
parent 3fb18b1a73
commit 864de8cb03
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,24 +1,25 @@
{ stdenv, lib, fetchurl }: { stdenv, lib, fetchFromGitHub }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "powerstat"; pname = "powerstat";
version = "0.02.25"; version = "0.02.27";
src = fetchurl { src = fetchFromGitHub {
url = "https://kernel.ubuntu.com/~cking/tarballs/${pname}/${pname}-${version}.tar.gz"; owner = "ColinIanKing";
sha256 = "sha256-C6MCOXnElDI69QkLKd2X2SLved8cRCN0Q6BhUvvqsTY="; repo = pname;
rev = "V${version}";
hash = "sha256-P6DhsHnB+ak35JpUfD8Q8XbgMhI1QKKe31B8uMT2ZcY=";
}; };
installFlags = [ "DESTDIR=${placeholder "out"}" ]; installFlags = [
"BINDIR=${placeholder "out"}/bin"
postInstall = '' "MANDIR=${placeholder "out"}/share/man/man8"
mv $out/usr/* $out "BASHDIR=${placeholder "out"}/share/bash-completion/completions"
rm -r $out/usr ];
'';
meta = with lib; { meta = with lib; {
description = "Laptop power measuring tool"; description = "Laptop power measuring tool";
homepage = "https://kernel.ubuntu.com/~cking/powerstat/"; homepage = "https://github.com/ColinIanKing/powerstat";
license = licenses.gpl2; license = licenses.gpl2;
platforms = platforms.linux; platforms = platforms.linux;
maintainers = with maintainers; [ womfoo ]; maintainers = with maintainers; [ womfoo ];