tpacpi-bat: init at 3.0 (#20213)

This commit is contained in:
Kjetil Ørbekk 2016-11-07 20:46:34 -05:00 committed by Franz Pletz
parent ee5af3fb66
commit 0d5caf138a
3 changed files with 35 additions and 0 deletions

View file

@ -318,6 +318,7 @@
offline = "Jaka Hudoklin <jakahudoklin@gmail.com>";
olcai = "Erik Timan <dev@timan.info>";
olejorgenb = "Ole Jørgen Brønner <olejorgenb@yahoo.no>";
orbekk = "KJ Ørbekk <kjetil.orbekk@gmail.com>";
orbitz = "Malcolm Matalka <mmatalka@gmail.com>";
osener = "Ozan Sener <ozan@ozansener.com>";
otwieracz = "Slawomir Gonet <slawek@otwiera.cz>";

View file

@ -0,0 +1,32 @@
{ stdenv, fetchFromGitHub, perl, kmod }:
# Requires the acpi_call kernel module in order to run.
stdenv.mkDerivation rec {
name = "tpacpi-bat-${version}";
version = "3.0";
src = fetchFromGitHub {
owner = "teleshoes";
repo = "tpacpi-bat";
rev = "v${version}";
sha256 = "0l72qvjk5j7sg9x4by7an0xwx65x10dx82fky8lnwlwfv54vgg8l";
};
buildInputs = [ perl ];
installPhase = ''
mkdir -p $out/bin
cp tpacpi-bat $out/bin
'';
postPatch = ''
substituteInPlace tpacpi-bat --replace modprobe ${kmod}/bin/modprobe
'';
meta = {
maintainers = [stdenv.lib.maintainers.orbekk];
platforms = stdenv.lib.platforms.linux;
description = "Tool to set battery charging thesholds on Lenovo Thinkpad";
license = stdenv.lib.licenses.gpl3Plus;
};
}

View file

@ -11413,6 +11413,8 @@ in
tiptop = callPackage ../os-specific/linux/tiptop { };
tpacpi-bat = callPackage ../os-specific/linux/tpacpi-bat { };
trinity = callPackage ../os-specific/linux/trinity { };
tunctl = callPackage ../os-specific/linux/tunctl { };