nixpkgs/pkgs/os-specific/linux/powerstat/default.nix
R. RyanTM 415f5ee000 powerstat: 0.02.15 -> 0.02.16
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/r8r2fb581gxng6pkwyvbssyl3w21f2pg-powerstat-0.02.16/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.16 with grep in /nix/store/r8r2fb581gxng6pkwyvbssyl3w21f2pg-powerstat-0.02.16
- directory tree listing: https://gist.github.com/07ed4981848777e18cca2c072d0fb30c
- du listing: https://gist.github.com/5766491662635d4a960a7cd3a4911db0
2018-05-21 08:58:11 +00:00

23 lines
647 B
Nix

{ stdenv, lib, fetchurl }:
stdenv.mkDerivation rec {
name = "powerstat-${version}";
version = "0.02.16";
src = fetchurl {
url = "http://kernel.ubuntu.com/~cking/tarballs/powerstat/powerstat-${version}.tar.gz";
sha256 = "14sx37l40038sjygsnp95542fkbhhc911vd9k5rf85czmvndz29m";
};
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 ];
};
}