nixpkgs/pkgs/tools/system/acpica-tools/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

47 lines
902 B
Nix
Raw Normal View History

2022-05-14 23:30:47 +00:00
{ lib
, stdenv
, fetchurl
, bison
, flex
}:
stdenv.mkDerivation rec {
2019-07-10 03:35:42 +00:00
pname = "acpica-tools";
2022-05-14 23:30:47 +00:00
version = "20220331";
src = fetchurl {
url = "https://acpica.org/sites/acpica/files/acpica-unix-${version}.tar.gz";
2022-05-14 23:30:47 +00:00
hash = "sha256-rK/2ixTx4IBOu/xLlyaKTMvvz6BTsC7Zkk8rFNipjiE=";
};
2022-05-14 23:30:47 +00:00
nativeBuildInputs = [ bison flex ];
buildFlags = [
"acpibin"
"acpidump"
"acpiexamples"
"acpiexec"
"acpihelp"
"acpisrc"
"acpixtract"
2021-08-08 10:59:48 +00:00
"iasl"
];
2022-05-14 23:30:47 +00:00
NIX_CFLAGS_COMPILE = "-O3";
enableParallelBuilding = true;
# We can handle stripping ourselves.
INSTALLFLAGS = "-m 555";
2019-08-22 20:23:33 +00:00
installFlags = [ "PREFIX=${placeholder "out"}" ];
meta = with lib; {
homepage = "https://www.acpica.org/";
2022-05-14 23:30:47 +00:00
description = "ACPICA Tools";
license = with licenses; [ iasl gpl2Only bsd3 ];
maintainers = with maintainers; [ tadfisher ];
2022-05-14 23:30:47 +00:00
platforms = platforms.linux;
};
}