git.iko.soy/typeable/nixpkgs
on master help sign in
chipsec: Kernel driver only works on x86_64-linux

See: https://github.com/chipsec/chipsec/issues/461 Noticed that when ofBorg failed to build the kernel driver on ARM.

commit1636f11f12e0a6aac43fb524f5a030e1c421714c authorDaniel Schaefer <git@danielschaefer.me> dateSat 20 Apr 2019, 22:55 (8 years ago) parent18a71fb
2 files changed+6−6
pkgs/tools/security/chipsec/default.nix+2−4 pkgs/top-level/all-packages.nix+4−2
pkgs/tools/security/chipsec/default.nix+2−4
@@ -7,7 +7,7 @@ python27Packages.buildPythonApplication rec {
77 src = fetchFromGitHub {
88 owner = "chipsec";
99 repo = "chipsec";
10− rev = if (version == "1.3.7") then version else "v${version}";
10+ rev = version;
1111 sha256 = "00hwhi5f24y429zazhm77l1pp31q7fmx7ks3sfm6d16v89zbcp9a";
1212 };
1313
@@ -35,8 +35,6 @@ python27Packages.buildPythonApplication rec {
3535 license = licenses.gpl2;
3636 homepage = https://github.com/chipsec/chipsec;
3737 maintainers = with maintainers; [ johnazoidberg ];
38− # This package description is currently only able to build the Linux driver.
39− # But the other functionality should work on all platforms.
40− platforms = platforms.all;
38+ platforms = if withDriver then [ "x86_64-linux" ] else platforms.all;
4139 };
4240}
pkgs/top-level/all-packages.nix+4−2
@@ -684,8 +684,10 @@ in
684684
685685 chezmoi = callPackage ../tools/misc/chezmoi { };
686686
687− # Without kernel driver, should build and work on non-linux as well
688− chipsec = callPackage ../tools/security/chipsec { };
687+ chipsec = callPackage ../tools/security/chipsec {
688+ kernel = null;
689+ withDriver = false;
690+ };
689691
690692 clair = callPackage ../tools/admin/clair { };
691693