2016-06-26 17:21:52 +00:00
|
|
|
{stdenv, fetchurl, fetchpatch}:
|
2008-02-21 19:57:40 +00:00
|
|
|
|
2016-06-26 17:21:52 +00:00
|
|
|
let
|
|
|
|
acpitool-patch-051-4 = params: fetchpatch rec {
|
|
|
|
inherit (params) name sha256;
|
|
|
|
url = "https://anonscm.debian.org/cgit/pkg-acpi/acpitool.git/plain/debian/patches/${name}?h=debian/0.5.1-4&id=3fd9f396f12ec9c1cae3337a2a25026b7faad2ae";
|
|
|
|
};
|
|
|
|
|
|
|
|
in stdenv.mkDerivation rec {
|
2010-05-27 19:33:37 +00:00
|
|
|
name = "acpitool-0.5.1";
|
2016-06-26 17:21:52 +00:00
|
|
|
|
2008-02-21 19:57:40 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/acpitool/${name}.tar.bz2";
|
2010-05-27 19:33:37 +00:00
|
|
|
sha256 = "004fb6cd43102918b6302cf537a2db7ceadda04aef2e0906ddf230f820dad34f";
|
2008-02-21 19:57:40 +00:00
|
|
|
};
|
|
|
|
|
2016-06-26 17:21:52 +00:00
|
|
|
patches = [
|
|
|
|
(acpitool-patch-051-4 {
|
|
|
|
name = "ac_adapter.patch";
|
|
|
|
sha256 = "0rn14vfv9x5gmwyvi6bha5m0n0pm4wbpg6h8kagmy3i1f8lkcfi8";
|
|
|
|
})
|
|
|
|
(acpitool-patch-051-4 {
|
|
|
|
name = "battery.patch";
|
|
|
|
sha256 = "190msm5cgqgammxp1j4dycfz206mggajm5904r7ifngkcwizh9m7";
|
|
|
|
})
|
|
|
|
(acpitool-patch-051-4 {
|
|
|
|
name = "kernel3.patch";
|
|
|
|
sha256 = "1qb47iqnv09i7kgqkyk9prr0pvlx0yaip8idz6wc03wci4y4bffg";
|
|
|
|
})
|
|
|
|
(acpitool-patch-051-4 {
|
|
|
|
name = "wakeup.patch";
|
|
|
|
sha256 = "1mmzf8n4zsvc7ngn51map2v42axm9vaf8yknbd5amq148sjf027z";
|
|
|
|
})
|
|
|
|
(acpitool-patch-051-4 {
|
|
|
|
name = "0001-Do-not-assume-fixed-line-lengths-for-proc-acpi-wakeu.patch";
|
|
|
|
sha256 = "10wwh7l3jbmlpa80fzdr18nscahrg5krl18pqwy77f7683mg937m";
|
|
|
|
})
|
|
|
|
(acpitool-patch-051-4 {
|
|
|
|
name = "typos.patch";
|
|
|
|
sha256 = "1178fqpk6sbqp1cyb1zf9qv7ahpd3pidgpid3bbpms7gyhqvvdpa";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2008-02-21 19:57:40 +00:00
|
|
|
meta = {
|
2009-03-03 13:27:40 +00:00
|
|
|
description = "A small, convenient command-line ACPI client with a lot of features";
|
2017-08-17 22:01:11 +00:00
|
|
|
homepage = https://sourceforge.net/projects/acpitool/;
|
2014-06-19 04:19:00 +00:00
|
|
|
license = stdenv.lib.licenses.gpl2Plus;
|
2010-05-27 19:33:37 +00:00
|
|
|
maintainers = [ stdenv.lib.maintainers.guibert ];
|
2016-08-02 17:50:55 +00:00
|
|
|
platforms = stdenv.lib.platforms.unix;
|
2008-02-21 19:57:40 +00:00
|
|
|
};
|
|
|
|
}
|