mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-18 07:46:09 +01:00
parent
3fb18b1a73
commit
864de8cb03
1 changed files with 13 additions and 12 deletions
|
@ -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 ];
|
||||||
|
|
Loading…
Reference in a new issue