7085bc9711
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/powerstat/versions. These checks were done: - built on NixOS - /nix/store/1q7hifi7jvv22y20h3rgp268k1p52cph-powerstat-0.02.17/bin/powerstat passed the binary check. - 1 of 1 passed binary check by having a zero exit code. - 0 of 1 passed binary check by having the new version present in output. - found 0.02.17 with grep in /nix/store/1q7hifi7jvv22y20h3rgp268k1p52cph-powerstat-0.02.17 - directory tree listing: https://gist.github.com/899a2e562dda36e64002479fff344183 - du listing: https://gist.github.com/5ede1bb4a0659e6dbfdb8882dc2efa39
23 lines
647 B
Nix
23 lines
647 B
Nix
{ stdenv, lib, fetchurl }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "powerstat-${version}";
|
|
version = "0.02.17";
|
|
src = fetchurl {
|
|
url = "http://kernel.ubuntu.com/~cking/tarballs/powerstat/powerstat-${version}.tar.gz";
|
|
sha256 = "1lxzrvwlf6h35i0d8v1yj1ka63i9i0yvv3adhy3pa3fl8arpvycs";
|
|
};
|
|
installFlags = [ "DESTDIR=$(out)" ];
|
|
postInstall = ''
|
|
mv $out/usr/* $out
|
|
rm -r $out/usr
|
|
'';
|
|
meta = with lib; {
|
|
description = "Laptop power measuring tool";
|
|
homepage = http://kernel.ubuntu.com/~cking/powerstat/;
|
|
license = licenses.gpl2;
|
|
platforms = platforms.linux;
|
|
maintainers = with maintainers; [ womfoo ];
|
|
};
|
|
}
|