chipsec: 1.5.1 -> 1.5.10
This commit is contained in:
parent
221a37ea8d
commit
68056e3333
1 changed files with 24 additions and 13 deletions
|
@ -1,29 +1,40 @@
|
||||||
{ stdenv, lib, fetchFromGitHub, python2Packages, nasm, libelf
|
{ lib
|
||||||
, kernel ? null, withDriver ? false }:
|
, stdenv
|
||||||
python2Packages.buildPythonApplication rec {
|
, fetchFromGitHub
|
||||||
|
, kernel ? null
|
||||||
|
, libelf
|
||||||
|
, nasm
|
||||||
|
, python3
|
||||||
|
, withDriver ? false
|
||||||
|
}:
|
||||||
|
|
||||||
|
python3.pkgs.buildPythonApplication rec {
|
||||||
pname = "chipsec";
|
pname = "chipsec";
|
||||||
version = "1.5.1";
|
version = "1.5.10";
|
||||||
|
disabled = !stdenv.isLinux;
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "chipsec";
|
owner = "chipsec";
|
||||||
repo = "chipsec";
|
repo = "chipsec";
|
||||||
rev = version;
|
rev = version;
|
||||||
sha256 = "1rxr9i08a22m15slvlkrhnki30jixi2ds096kmmc2nqzfr9yibmb";
|
sha256 = "sha256-3ZFLBn0HtQo4/6pFNPinA9hHnkbW/Y1AxXgwzrAvNMk=";
|
||||||
};
|
};
|
||||||
|
|
||||||
disabled = !stdenv.isLinux;
|
KERNEL_SRC_DIR = lib.optionalString withDriver "${kernel.dev}/lib/modules/${kernel.modDirVersion}/build";
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
nasm libelf
|
libelf
|
||||||
|
nasm
|
||||||
|
];
|
||||||
|
|
||||||
|
checkInputs = [
|
||||||
|
python3.pkgs.distro
|
||||||
|
python3.pkgs.pytestCheckHook
|
||||||
];
|
];
|
||||||
|
|
||||||
setupPyBuildFlags = lib.optional (!withDriver) "--skip-driver";
|
setupPyBuildFlags = lib.optional (!withDriver) "--skip-driver";
|
||||||
|
|
||||||
checkPhase = "python setup.py build "
|
pythonImportsCheck = [ "chipsec" ];
|
||||||
+ lib.optionalString (!withDriver) "--skip-driver "
|
|
||||||
+ "test";
|
|
||||||
|
|
||||||
KERNEL_SRC_DIR = lib.optionalString withDriver "${kernel.dev}/lib/modules/${kernel.modDirVersion}/build";
|
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Platform Security Assessment Framework";
|
description = "Platform Security Assessment Framework";
|
||||||
|
@ -34,7 +45,7 @@ python2Packages.buildPythonApplication rec {
|
||||||
interfaces, and forensic capabilities. It can be run on Windows, Linux,
|
interfaces, and forensic capabilities. It can be run on Windows, Linux,
|
||||||
Mac OS X and UEFI shell.
|
Mac OS X and UEFI shell.
|
||||||
'';
|
'';
|
||||||
license = licenses.gpl2;
|
license = licenses.gpl2Only;
|
||||||
homepage = "https://github.com/chipsec/chipsec";
|
homepage = "https://github.com/chipsec/chipsec";
|
||||||
maintainers = with maintainers; [ johnazoidberg ];
|
maintainers = with maintainers; [ johnazoidberg ];
|
||||||
platforms = if withDriver then [ "x86_64-linux" ] else platforms.all;
|
platforms = if withDriver then [ "x86_64-linux" ] else platforms.all;
|
||||||
|
|
Loading…
Reference in a new issue