Merge pull request #155468 from fabaff/bump-chipsec
chipsec: 1.6.1 -> 1.8.1
This commit is contained in:
commit
878ab2cf9d
1 changed files with 14 additions and 8 deletions
|
@ -10,14 +10,15 @@
|
||||||
|
|
||||||
python3.pkgs.buildPythonApplication rec {
|
python3.pkgs.buildPythonApplication rec {
|
||||||
pname = "chipsec";
|
pname = "chipsec";
|
||||||
version = "1.6.1";
|
version = "1.8.1";
|
||||||
|
|
||||||
disabled = !stdenv.isLinux;
|
disabled = !stdenv.isLinux;
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "chipsec";
|
owner = "chipsec";
|
||||||
repo = "chipsec";
|
repo = "chipsec";
|
||||||
rev = version;
|
rev = version;
|
||||||
sha256 = "01sp24z63r3nqxx57zc4873b8i5dqipy7yrxzrwjns531vznhiy2";
|
hash = "sha256-bK8wlwhP0pi8rOs8ysbSZ+0aZOaX4mckfH/p4OLGnes=";
|
||||||
};
|
};
|
||||||
|
|
||||||
patches = lib.optionals withDriver [ ./ko-path.diff ./compile-ko.diff ];
|
patches = lib.optionals withDriver [ ./ko-path.diff ./compile-ko.diff ];
|
||||||
|
@ -29,9 +30,9 @@ python3.pkgs.buildPythonApplication rec {
|
||||||
nasm
|
nasm
|
||||||
];
|
];
|
||||||
|
|
||||||
checkInputs = [
|
checkInputs = with python3.pkgs; [
|
||||||
python3.pkgs.distro
|
distro
|
||||||
python3.pkgs.pytestCheckHook
|
pytestCheckHook
|
||||||
];
|
];
|
||||||
|
|
||||||
preBuild = lib.optionalString withDriver ''
|
preBuild = lib.optionalString withDriver ''
|
||||||
|
@ -45,10 +46,15 @@ python3.pkgs.buildPythonApplication rec {
|
||||||
$out/${python3.pkgs.python.sitePackages}/drivers/linux/chipsec.ko
|
$out/${python3.pkgs.python.sitePackages}/drivers/linux/chipsec.ko
|
||||||
'';
|
'';
|
||||||
|
|
||||||
setupPyBuildFlags = [ "--build-lib=$CHIPSEC_BUILD_LIB" ]
|
setupPyBuildFlags = [
|
||||||
++ lib.optional (!withDriver) "--skip-driver";
|
"--build-lib=$CHIPSEC_BUILD_LIB"
|
||||||
|
] ++ lib.optional (!withDriver) [
|
||||||
|
"--skip-driver"
|
||||||
|
];
|
||||||
|
|
||||||
pythonImportsCheck = [ "chipsec" ];
|
pythonImportsCheck = [
|
||||||
|
"chipsec"
|
||||||
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Platform Security Assessment Framework";
|
description = "Platform Security Assessment Framework";
|
||||||
|
|
Loading…
Reference in a new issue