diff options
author | Alyssa Ross <hi@alyssa.is> | 2022-05-10 08:14:13 +0000 |
---|---|---|
committer | Alyssa Ross <hi@alyssa.is> | 2022-05-10 08:14:13 +0000 |
commit | 8999676304dc81bb257ca28737b584b39c506954 (patch) | |
tree | d613cb779becd06729d147eff6c24f18f3d25fa5 /host/rootfs | |
parent | a338234170db808b054bb4a12c668af44eeb7259 (diff) | |
download | spectrum-8999676304dc81bb257ca28737b584b39c506954.tar spectrum-8999676304dc81bb257ca28737b584b39c506954.tar.gz spectrum-8999676304dc81bb257ca28737b584b39c506954.tar.bz2 spectrum-8999676304dc81bb257ca28737b584b39c506954.tar.lz spectrum-8999676304dc81bb257ca28737b584b39c506954.tar.xz spectrum-8999676304dc81bb257ca28737b584b39c506954.tar.zst spectrum-8999676304dc81bb257ca28737b584b39c506954.zip |
host/rootfs: make firmware available
Diffstat (limited to 'host/rootfs')
-rw-r--r-- | host/rootfs/default.nix | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/host/rootfs/default.nix b/host/rootfs/default.nix index f40e25d..7ac3d3a 100644 --- a/host/rootfs/default.nix +++ b/host/rootfs/default.nix @@ -4,8 +4,8 @@ { pkgs ? import <nixpkgs> {} }: pkgs.pkgsStatic.callPackage ( { lib, stdenv, runCommand, writeReferencesToFile, s6-rc, tar2ext4 -, busybox, cloud-hypervisor, cryptsetup, execline, jq, kmod, mdevd, s6 -, s6-linux-init, socat, util-linuxMinimal, xorg +, busybox, cloud-hypervisor, cryptsetup, execline, jq, kmod, linux-firmware +, mdevd, s6, s6-linux-init, socat, util-linuxMinimal, xorg }: let @@ -57,14 +57,14 @@ let packagesSysroot = runCommand "packages-sysroot" { nativeBuildInputs = [ xorg.lndir ]; } '' - mkdir -p $out/usr/bin + mkdir -p $out/lib $out/usr/bin ln -s ${concatMapStringsSep " " (p: "${p}/bin/*") packages} $out/usr/bin for pkg in ${lib.escapeShellArgs [ pkgsGui.mesa.drivers pkgsGui.dejavu_fonts ]}; do lndir -silent "$pkg" "$out/usr" done - ln -s ${kernel}/lib $out/lib + ln -s ${kernel}/lib/modules ${linux-firmware}/lib/firmware $out/lib # TODO: this is a hack and we should just build the util-linux # programs we want. |