1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
| | # SPDX-License-Identifier: MIT
# SPDX-FileCopyrightText: 2021-2022, 2024 Alyssa Ross <hi@alyssa.is>
import ../../lib/call-package.nix (
{ callSpectrumPackage, rootfs, pkgsStatic, stdenv
, cryptsetup, jq, qemu_kvm, util-linux
, config
}:
let
initramfs = callSpectrumPackage ./. {};
in
initramfs.overrideAttrs ({ nativeBuildInputs ? [], env ? {}, ... }: {
nativeBuildInputs = nativeBuildInputs ++ [
cryptsetup jq qemu_kvm util-linux
];
env = env // {
KERNEL = "${rootfs.kernel}/${stdenv.hostPlatform.linux-kernel.target}";
ROOT_FS = rootfs;
VERSION = config.version;
};
})) (_: {})
|