mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-24 22:53:42 +00:00
717bac455f
* acpid: 2.0.30 -> 2.0.31 (#50815) Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/acpid/versions * acpid: refresh meta.homepage
28 lines
806 B
Nix
28 lines
806 B
Nix
{ stdenv, fetchurl, autoreconfHook }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "acpid-2.0.31";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://sourceforge/acpid2/${name}.tar.xz";
|
|
sha256 = "1hrc0xm6q12knbgzhq0i8g2rfrkwcvh1asd7k9rs3nc5xmlwd7gw";
|
|
};
|
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
|
|
|
# remove when https://sourceforge.net/p/acpid2/code/merge-requests/1/ is merged
|
|
postPatch = ''
|
|
substituteInPlace configure.ac \
|
|
--replace "AC_FUNC_MALLOC" "" \
|
|
--replace "AC_FUNC_REALLOC" "" \
|
|
--replace "strrchr strtol" "strrchr strtol malloc realloc"
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
homepage = https://sourceforge.net/projects/acpid2/;
|
|
description = "A daemon for delivering ACPI events to userspace programs";
|
|
license = licenses.gpl2Plus;
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|