# SPDX-License-Identifier: MIT # SPDX-FileCopyrightText: 2021-2022, 2024 Alyssa Ross 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}/${rootfs.kernel.target}"; ROOT_FS = rootfs; VERSION = config.version; }; })) (_: {})