summaryrefslogtreecommitdiff
path: root/pkgs/os-specific/linux/firmware/sof-firmware/default.nix
diff options
context:
space:
mode:
authorRobin Gloster <mail@glob.in>2021-05-24 09:55:24 -0500
committerRobin Gloster <mail@glob.in>2021-05-24 09:55:24 -0500
commit4bc5fbef9d159e143fb7e2c3231932e6e76f667c (patch)
treee2198f5c552e0667d838b8ec764ddb3a4d8f6dec /pkgs/os-specific/linux/firmware/sof-firmware/default.nix
parentjq: fix build with structured-attrs on darwin (diff)
parentMerge pull request #123802 from superherointj/package-virtmanager-bugfix (diff)
downloadnixpkgs-origin/structured-attrs.tar.gz
Merge remote-tracking branch 'upstream/master' into structured-attrsorigin/structured-attrs
Diffstat (limited to 'pkgs/os-specific/linux/firmware/sof-firmware/default.nix')
-rw-r--r--pkgs/os-specific/linux/firmware/sof-firmware/default.nix17
1 files changed, 8 insertions, 9 deletions
diff --git a/pkgs/os-specific/linux/firmware/sof-firmware/default.nix b/pkgs/os-specific/linux/firmware/sof-firmware/default.nix
index b474c48e3414..5ee39c5bf331 100644
--- a/pkgs/os-specific/linux/firmware/sof-firmware/default.nix
+++ b/pkgs/os-specific/linux/firmware/sof-firmware/default.nix
@@ -3,29 +3,28 @@
with lib;
stdenv.mkDerivation rec {
pname = "sof-firmware";
- version = "1.6";
+ version = "1.7";
src = fetchFromGitHub {
owner = "thesofproject";
repo = "sof-bin";
- rev = "cbdec6963b2c2d58b0080955d3c11b96ff4c92f0";
- sha256 = "0la2pw1zpv50cywiqcfb00cxqvjc73drxwjchyzi54l508817nxh";
+ rev = "v${version}";
+ sha256 = "sha256-Z0Z4HLsIIuW8E1kFNhAECmzj1HkJVfbEw13B8V7PZLk=";
};
- phases = [ "unpackPhase" "installPhase" ];
+ dontFixup = true; # binaries must not be stripped or patchelfed
installPhase = ''
- mkdir -p $out/lib/firmware
-
- patchShebangs go.sh
- ROOT=$out SOF_VERSION=v${version} ./go.sh
+ mkdir -p $out/lib/firmware/intel/
+ cp -a sof-v${version} $out/lib/firmware/intel/sof
+ cp -a sof-tplg-v${version} $out/lib/firmware/intel/sof-tplg
'';
meta = with lib; {
description = "Sound Open Firmware";
homepage = "https://www.sofproject.org/";
license = with licenses; [ bsd3 isc ];
- maintainers = with maintainers; [ lblasc evenbrenden ];
+ maintainers = with maintainers; [ lblasc evenbrenden hmenke ];
platforms = with platforms; linux;
};
}