New ucm-conf
This commit is contained in:
parent
0af22d0c44
commit
e82f8cdbbc
1 changed files with 9 additions and 17 deletions
|
|
@ -2,24 +2,16 @@
|
||||||
|
|
||||||
let
|
let
|
||||||
cml-ucm-conf = pkgs.alsa-ucm-conf.overrideAttrs {
|
cml-ucm-conf = pkgs.alsa-ucm-conf.overrideAttrs {
|
||||||
wttsrc = pkgs.fetchurl {
|
wttsrc = pkgs.fetchFromGitHub {
|
||||||
url =
|
owner = "WeirdTreeThing";
|
||||||
"https://github.com/WeirdTreeThing/chromebook-ucm-conf/archive/2b2f3a7c993fd38a24aa81394e29ee530b890658.tar.gz";
|
repo = "chromebook-ucm-conf";
|
||||||
hash = "sha256-WeLkxWB174Hwb11xnIxsvRm5NpM528IVEYH4K32pLwg=";
|
rev = "b6ce2a7";
|
||||||
|
hash = "sha256-QRUKHd3RQmg1tnZU8KCW0AmDtfw/daOJ/H3XU5qWTCc=";
|
||||||
};
|
};
|
||||||
unpackPhase = ''
|
postInstall = ''
|
||||||
runHook preUnpack
|
echo "v0.4.1" > $out/chromebook.patched
|
||||||
tar xf "$src"
|
cp -R $wttsrc/{common,codecs,platforms} $out/share/alsa/ucm2
|
||||||
tar xf "$wttsrc"
|
cp -R $wttsrc/{cml,sof-rt5682} $out/share/alsa/ucm2/conf.d
|
||||||
runHook postUnpack
|
|
||||||
'';
|
|
||||||
installPhase = ''
|
|
||||||
runHook preInstall
|
|
||||||
mkdir -p $out/share/alsa
|
|
||||||
cp -r alsa-ucm*/{ucm,ucm2} $out/share/alsa
|
|
||||||
cp -r chromebook-ucm*/{common,codecs,platforms} $out/share/alsa/ucm2
|
|
||||||
cp -r chromebook-ucm*/{cml,sof-rt5682,sof-cs42l42} $out/share/alsa/ucm2/conf.d
|
|
||||||
runHook postInstall
|
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
in {
|
in {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue