Commit Graph

30 Commits

Author SHA1 Message Date
Artturin
e0464e4788 treewide: replace stdenv.is with stdenv.hostPlatform.is
In preparation for the deprecation of `stdenv.isX`.

These shorthands are not conducive to cross-compilation because they
hide the platforms.

Darwin might get cross-compilation for which the continued usage of `stdenv.isDarwin` will get in the way

One example of why this is bad and especially affects compiler packages
https://www.github.com/NixOS/nixpkgs/pull/343059

There are too many files to go through manually but a treewide should
get users thinking when they see a `hostPlatform.isX` in a place where it
doesn't make sense.

```
fd --type f "\.nix" | xargs sd --fixed-strings "stdenv.is" "stdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "stdenv'.is" "stdenv'.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "clangStdenv.is" "clangStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "gccStdenv.is" "gccStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "stdenvNoCC.is" "stdenvNoCC.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "inherit (stdenv) is" "inherit (stdenv.hostPlatform) is"
fd --type f "\.nix" | xargs sd --fixed-strings "buildStdenv.is" "buildStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "effectiveStdenv.is" "effectiveStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "originalStdenv.is" "originalStdenv.hostPlatform.is"
```
2024-09-25 00:04:37 +03:00
natsukium
2f42c81512 chipsec: fix tests with python312 2024-06-24 12:18:28 +02:00
Philip Taron
03cb76ec6b
chipsec: use elfutils instead of abandoned libelf 2024-04-03 10:47:31 -07:00
Alexandre Iooss
eae5f83649 chipsec: mark broken on hardened kernels older than 5.4 2023-05-15 06:55:48 +02:00
Alexandre Iooss
e3d1294a9f chipsec: add erdnaxe to maintainers 2023-05-14 21:04:16 +02:00
Alexandre Iooss
1dd536c54c chipsec: 1.8.1 -> 1.10.6 2023-05-14 21:04:11 +02:00
Artturin
f9fdf2d402 treewide: move NIX_CFLAGS_COMPILE to the env attrset
with structuredAttrs lists will be bash arrays which cannot be exported
which will be a issue with some patches and some wrappers like cc-wrapper

this makes it clearer that NIX_CFLAGS_COMPILE must be a string as lists
in env cause a eval failure
2023-02-22 21:23:04 +02:00
Artturin
6f6cc4a22d treewide: use toString on list NIX_CFLAGS_COMPILE
with structuredAttrs lists will be bash arrays which cannot be exported
which will be a issue with some patches and some wrappers like cc-wrapper
2023-02-22 21:23:04 +02:00
Fabián Heredia Montiel
0cf5d85f0c treewide: add gcc12 flags 2023-01-27 21:20:52 -06:00
Guillaume Girol
33afbf39f6 treewide: switch to nativeCheckInputs
checkInputs used to be added to nativeBuildInputs. Now we have
nativeCheckInputs to do that instead. Doing this treewide change allows
to keep hashes identical to before the introduction of
nativeCheckInputs.
2023-01-21 12:00:00 +00:00
Artturin
7e49471316 treewide: optional -> optionals where the argument is a list
the argument to optional should not be list
2022-10-10 15:40:21 +03:00
Robert Scott
d40419c241 chipsec: restrict to x86-only
package is unlikely to support other platforms in the near
future - see https://github.com/chipsec/chipsec/issues/461
2022-05-22 21:11:45 +01:00
Fabian Affolter
96ff7e3676 chipsec: 1.8.0 -> 1.8.1 2022-02-10 08:24:36 +01:00
Fabian Affolter
49c657c60c chipsec: 1.6.1 -> 1.8.0 2022-02-10 08:22:01 +01:00
Daniel Schaefer
b036fe2fed chipsec: Fix building kernel module
In recent versions of chipsec the build scripts have changed and we
haven't built the kernel module in nixpkgs. Upstream has changed the
variable for the kernel sources.

Additional patches are needed as a workaround. Those issues should be
fixed upstream.
2021-04-09 23:00:28 +08:00
Daniel Schaefer
74ad753b4f chipsec: 1.5.10 -> 1.6.1 2021-04-09 14:32:12 +08:00
Fabian Affolter
68056e3333 chipsec: 1.5.1 -> 1.5.10 2021-03-28 23:57:16 +02:00
Frederik Rietdijk
e1253a694f chipsec: use python2 2021-03-25 11:27:08 +01:00
Profpatsch
4a7f99d55d treewide: with stdenv.lib; in meta -> with lib;
Part of: https://github.com/NixOS/nixpkgs/issues/108938

meta = with stdenv.lib;

is a widely used pattern. We want to slowly remove
the `stdenv.lib` indirection and encourage people
to use `lib` directly. Thus let’s start with the meta
field.

This used a rewriting script to mostly automatically
replace all occurances of this pattern, and add the
`lib` argument to the package header if it doesn’t
exist yet.

The script in its current form is available at
https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
2021-01-11 10:38:22 +01:00
Mario Rodas
2cdc05763f chipsec: disable on non-Linux 2020-06-17 04:20:00 +00:00
R. RyanTM
b4ea1062bc linuxPackages_hardened.chipsec: 1.4.9 -> 1.5.1 2020-06-15 19:10:20 +02:00
Daniel Schaefer
6689065a3b
Merge branch 'master' into auto-update/chipsec 2020-04-06 19:26:10 +02:00
R. RyanTM
cc41ff0288 linuxPackages_hardened.chipsec: 1.4.7 -> 1.4.9 2020-04-04 21:04:53 +00:00
Frederik Rietdijk
46ec52f329 buildPython*: use pname 2020-03-30 17:07:41 +02:00
Daniel Schaefer
8a24d3f892 chipsec: 1.4.1 -> 1.4.7 2020-02-10 19:50:25 +01:00
Daniel Schaefer
f25e86411c chipsec: 1.4.0 -> 1.4.1 2019-09-13 14:30:58 +02:00
Daniel Schaefer
908ecd5cb7 chipsec: 1.3.7 -> 1.4.0 2019-08-25 00:41:02 +02:00
Daniel Schaefer
1636f11f12 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.
2019-04-22 01:32:13 +02:00
Daniel Schaefer
18a71fbdd4 chipsec: 1.3.6 -> 1.3.7 2019-04-20 22:39:48 +02:00
Daniel Schaefer
75e08f26f1 chipsec: init at 1.3.6 2019-04-20 22:39:48 +02:00