mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-02 10:31:36 +00:00
19 lines
357 B
Bash
19 lines
357 B
Bash
|
source $stdenv/setup
|
||
|
|
||
|
hashname=$(basename $kernel)
|
||
|
echo $hashname
|
||
|
if echo "$hashname" | grep -q '^[a-z0-9]\{32\}-'; then
|
||
|
hashname=$(echo "$hashname" | cut -c -32)
|
||
|
fi
|
||
|
|
||
|
stripHash $kernel
|
||
|
version=$(echo $strippedName | cut -c 7-)-$hashname
|
||
|
|
||
|
echo "version $version"
|
||
|
|
||
|
export version
|
||
|
|
||
|
ensureDir $out/lib/modules/$version/kernel/drivers/usb/media/
|
||
|
|
||
|
genericBuild
|