mirror of
https://codeberg.org/mart-w/nixos-x13s.git
synced 2024-11-14 11:44:48 +01:00
3a002c5a64
nixos unstable and 24.05 switched to zstd compression for firmware files. Roll back to the previous setup of creating a package of the qcom firmware uncompressed, and patching pd-mapper. closes #14
25 lines
472 B
Nix
25 lines
472 B
Nix
{
|
|
runCommand,
|
|
buildEnv,
|
|
firmwareFilesList ? [ ],
|
|
}:
|
|
runCommand "qcom-modem-uncompressed-firmware-share"
|
|
{
|
|
firmwareFiles = buildEnv {
|
|
name = "qcom-modem-uncompressed-firmware";
|
|
paths = firmwareFilesList;
|
|
pathsToLink = [
|
|
"/lib/firmware/rmtfs"
|
|
"/lib/firmware/qcom"
|
|
];
|
|
};
|
|
}
|
|
''
|
|
PS4=" $ "
|
|
(
|
|
set -x
|
|
mkdir -p $out/share/
|
|
ln -s $firmwareFiles/lib/firmware/ $out/share/uncompressed-firmware
|
|
)
|
|
''
|