Skip to content

Commit be02d16

Browse files
authored
Merge pull request #1657 from NixOS/no-instantiate
speed up ci
2 parents e4c6ee6 + f34ca80 commit be02d16

File tree

8 files changed

+50
-37
lines changed

8 files changed

+50
-37
lines changed

asus/flow/gv302x/shared.nix

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ let
1111
mkEnableOption
1212
mkIf
1313
mkMerge
14-
version
1514
versionAtLeast
1615
;
1716

flake.nix

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -425,16 +425,16 @@
425425
common-cpu-amd-zenpower = import ./common/cpu/amd/zenpower.nix;
426426
common-cpu-amd-raphael-igpu = import ./common/cpu/amd/raphael/igpu.nix;
427427
common-cpu-intel = import ./common/cpu/intel;
428-
common-gpu-intel-comet-lake =
429-
deprecated "992" "common-gpu-intel-comet-lake"
430-
(import ./common/gpu/intel/comet-lake);
428+
common-gpu-intel-comet-lake = deprecated "992" "common-gpu-intel-comet-lake" (
429+
import ./common/gpu/intel/comet-lake
430+
);
431431
common-cpu-intel-cpu-only = import ./common/cpu/intel/cpu-only.nix;
432-
common-gpu-intel-kaby-lake =
433-
deprecated "992" "common-gpu-intel-kaby-lake"
434-
(import ./common/gpu/intel/kaby-lake);
435-
common-gpu-intel-sandy-bridge =
436-
deprecated "992" "common-gpu-intel-sandy-bridge"
437-
(import ./common/gpu/intel/sandy-bridge);
432+
common-gpu-intel-kaby-lake = deprecated "992" "common-gpu-intel-kaby-lake" (
433+
import ./common/gpu/intel/kaby-lake
434+
);
435+
common-gpu-intel-sandy-bridge = deprecated "992" "common-gpu-intel-sandy-bridge" (
436+
import ./common/gpu/intel/sandy-bridge
437+
);
438438
common-gpu-amd = import ./common/gpu/amd;
439439
common-gpu-amd-sea-islands = import ./common/gpu/amd/sea-islands;
440440
common-gpu-amd-southern-islands = import ./common/gpu/amd/southern-islands;

kobol/helios4/default.nix

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,22 @@ let
55
# A patch to get both PWM fans working
66
# the patch has been successfully applied to 5.15 and 5.19
77
{
8+
name = "mvebu-gpio-remove-hardcoded-timer-assignment";
89
patch = pkgs.fetchpatch {
910
url = "https://raw.githubusercontent.com/armbian/build/bd3466eef2106ea13e85e821f5d852ff97465e6c/patch/kernel/archive/mvebu-5.15/92-mvebu-gpio-remove-hardcoded-timer-assignment.patch";
1011
sha256 = "sha256-eQqMp0+MZd30zkl8DE89oB7czvyqCkfwF2k0EZ69jr0=";
1112
};
1213
}
1314
# support for Wake-On-Lan
1415
{
16+
name = "mvebu-gpio-add-wake-on-gpio-support";
1517
patch = pkgs.fetchpatch {
1618
url = "https://raw.githubusercontent.com/armbian/build/bd3466eef2106ea13e85e821f5d852ff97465e6c/patch/kernel/archive/mvebu-5.15/92-mvebu-gpio-add_wake_on_gpio_support.patch";
1719
sha256 = "sha256-OrvnVCU55P0U78jdoxGRJvl29i+Rvq8AdEGSCCpxa2I=";
1820
};
1921
}
2022
{
23+
name = "helios4-dts-add-wake-on-lan-support";
2124
patch = pkgs.fetchpatch {
2225
url = "https://raw.githubusercontent.com/armbian/build/bd3466eef2106ea13e85e821f5d852ff97465e6c/patch/kernel/archive/mvebu-5.15/94-helios4-dts-add-wake-on-lan-support.patch";
2326
sha256 = "sha256-ai4161bTC22023eaVVWsvbk6fQKjkv0P4DQ4DA1Zgow=";

mnt/reform/kernel.nix

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -34,18 +34,23 @@ let
3434
hash = "sha256-XiTuH40b3VJqzwygZzU0FcvMDj41Rq6IsMbm+3+QxDY=";
3535
};
3636

37-
kernelPatches =
38-
(map (patch: { inherit patch; }) (
39-
lib.filesystem.listFilesRecursive "${reformDebianPackages}/linux/patches${lib.versions.majorMinor modDirVersion}"
40-
))
41-
++ [
42-
{
43-
patch = callPackage ./dtsPatch.nix {
44-
inherit reformDebianPackages;
45-
kernelSource = src;
46-
};
47-
}
48-
];
37+
# Use postPatch to apply patches from a directory without IFD
38+
postPatch = ''
39+
for patch in ${reformDebianPackages}/linux/patches${lib.versions.majorMinor modDirVersion}/*/*.patch; do
40+
echo "Applying patch: $patch"
41+
patch -p1 < "$patch"
42+
done
43+
'';
44+
45+
kernelPatches = [
46+
{
47+
name = "reform-dts";
48+
patch = callPackage ./dtsPatch.nix {
49+
inherit reformDebianPackages;
50+
kernelSource = src;
51+
};
52+
}
53+
];
4954

5055
structuredExtraConfig = with lib.kernel; {
5156
# configuration options from https://source.mnt.re/reform/reform-debian-packages/-/blob/7f31ba3a6742d60d8d502c1d86e63ef5df3916bf/linux/config

pine64/star64/linux-5.15.nix

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,19 +32,24 @@ let
3232
defconfig = "pine64_star64_defconfig";
3333
kernelPatches = [
3434
{
35+
name = "keys-dh-fix";
3536
patch = fetchpatch {
3637
url = "https://github.com/torvalds/linux/commit/215bebc8c6ac438c382a6a56bd2764a2d4e1da72.diff";
3738
hash = "sha256-1ZqmVOkgcDBRkHvVRPH8I5G1STIS1R/l/63PzQQ0z0I=";
3839
includes = [ "security/keys/dh.c" ];
3940
};
4041
}
4142
{
43+
name = "starfive-vin-sensor-fix";
4244
patch = fetchpatch {
4345
url = "https://github.com/starfive-tech/linux/pull/108/commits/9ae8cb751c4d1fd2146b279a8e67887590e9d07a.diff";
4446
hash = "sha256-EY0lno+HkY5mradBUPII3qqu0xh+BVQRzveCQcaht0M=";
4547
};
4648
}
47-
{ patch = ./irq-desc-to-data.patch; }
49+
{
50+
name = "irq-desc-to-data";
51+
patch = ./irq-desc-to-data.patch;
52+
}
4853
]
4954
++ kernelPatches;
5055

purism/librem/5r4/u-boot/default.nix

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
{
22
stdenv,
3-
gcc11Stdenv,
43
buildUBoot,
54
fetchurl,
65
fetchFromGitLab,
@@ -28,7 +27,7 @@ let
2827
meta.license = lib.licenses.unfree;
2928
});
3029

31-
arm-trusted-firmware-imx8mq = gcc11Stdenv.mkDerivation (_fa: {
30+
arm-trusted-firmware-imx8mq = stdenv.mkDerivation (_fa: {
3231
pname = "arm-trusted-firmware-bl31";
3332
version = "unstable-2020-07-08";
3433
src = fetchFromGitLab {
@@ -40,6 +39,7 @@ let
4039
};
4140
enableParallelBuilding = true;
4241
hardeningDisable = [ "all" ];
42+
NIX_CFLAGS_COMPILE = "-Wno-error=array-bounds";
4343
NIX_LDFLAGS = "--no-warn-rwx-segments";
4444
buildFlags = [
4545
"PLAT=imx8mq"
@@ -53,14 +53,14 @@ let
5353
});
5454

5555
ubootLibrem5 = buildUBoot {
56-
version = "unstable-2022-12-15";
56+
version = "unstable-2025-03-25";
5757
defconfig = "librem5_defconfig";
5858
src = fetchFromGitLab {
5959
domain = "source.puri.sm";
6060
owner = "Librem5";
6161
repo = "uboot-imx";
62-
rev = "956aa590c93977992743b41c45d3c7ee5a024915"; # this is the latest commit on the upstream/librem5 branch
63-
hash = "sha256-MsIIlarN+WFFEzc0ptLAgS7BwJ6Cosy42xo0EwPn1AU=";
62+
rev = "72fcd4ee36e0874daac734c1195263cd9ce9d981"; # this is the latest commit on the upstream/librem5 branch
63+
hash = "sha256-ymqZPuyyZoFTaCMQIJnuNs1fV0uVwJhyQdnGwv9m9lE=";
6464
};
6565
patches = [ ];
6666
BL31 = "${arm-trusted-firmware-imx8mq}/bl31.bin";

tests/flake.lock

Lines changed: 9 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/run.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ def run_eval_test(gcroot_dir: Path, jobs: int) -> list[str]:
6969
failed_profiles = []
7070
cmd = [
7171
"nix-eval-jobs",
72+
"--no-instantiate",
7273
"--extra-experimental-features", "flakes",
7374
"--option", "eval-cache", "false",
7475
"--gc-roots-dir",

0 commit comments

Comments
 (0)