mirror of
https://codeberg.org/mart-w/nixos-x13s.git
synced 2024-11-15 03:54:47 +01:00
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
|
||
|
)
|
||
|
''
|