diff options
Diffstat (limited to 'infra/corenix/pkgs/coreboot-payload-coreinfo/default.nix')
-rw-r--r-- | infra/corenix/pkgs/coreboot-payload-coreinfo/default.nix | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/infra/corenix/pkgs/coreboot-payload-coreinfo/default.nix b/infra/corenix/pkgs/coreboot-payload-coreinfo/default.nix new file mode 100644 index 000000000000..0ecb41add1cc --- /dev/null +++ b/infra/corenix/pkgs/coreboot-payload-coreinfo/default.nix @@ -0,0 +1,15 @@ +{ coreboot, lib, stdenv, writeText, coreinfoConfig ? { } }: + +stdenv.mkDerivation rec { + pname = "coreboot-payload-coreinfo"; + inherit (coreboot.drvAttrs) version src postPatch; + + preConfigure = "cd payloads/coreinfo"; + configurePhase = '' + runHook preConfigure + cp ${coreboot.writeConfig coreinfoConfig} .config + make olddefconfig + runHook postConfigure + ''; + installPhase = "install -D build/coreinfo.elf -t $out"; +} |