1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-15 09:03:48 +00:00
nixpkgs/pkgs/os-specific/linux/powerstat/default.nix

27 lines
663 B
Nix
Raw Normal View History

2016-07-14 17:55:10 +01:00
{ stdenv, lib, fetchurl }:
stdenv.mkDerivation rec {
2019-07-13 17:14:05 +01:00
pname = "powerstat";
2020-01-22 10:53:54 +00:00
version = "0.02.21";
2019-07-13 17:14:05 +01:00
2016-07-14 17:55:10 +01:00
src = fetchurl {
2019-07-13 17:14:05 +01:00
url = "https://kernel.ubuntu.com/~cking/tarballs/${pname}/${pname}-${version}.tar.gz";
2020-01-22 10:53:54 +00:00
sha256 = "00396dyn3mw3virx9h2g9kzw9ai10x7wpn8zclnvvidn9g0jhf31";
2016-07-14 17:55:10 +01:00
};
2019-07-13 17:14:05 +01:00
2019-07-08 22:56:30 +01:00
installFlags = [ "DESTDIR=${placeholder "out"}" ];
2019-07-13 17:14:05 +01:00
2016-07-14 17:55:10 +01:00
postInstall = ''
mv $out/usr/* $out
rm -r $out/usr
'';
2019-07-13 17:14:05 +01:00
2016-07-14 17:55:10 +01:00
meta = with lib; {
description = "Laptop power measuring tool";
homepage = https://kernel.ubuntu.com/~cking/powerstat/;
2016-07-14 17:55:10 +01:00
license = licenses.gpl2;
platforms = platforms.linux;
maintainers = with maintainers; [ womfoo ];
};
}