Merge staging-next into staging

This commit is contained in:
github-actions[bot]
2021-04-30 18:26:34 +00:00
committed by GitHub
37 changed files with 594 additions and 116 deletions
@@ -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;
};
}
+3 -2
View File
@@ -1,7 +1,7 @@
{ version, sha256Hash }:
{ lib, stdenv, fetchFromGitHub, fetchpatch
, fusePackages, util-linux, gettext
, fusePackages, util-linux, gettext, shadow
, meson, ninja, pkg-config
, autoreconfHook
, python3Packages, which
@@ -54,13 +54,14 @@ in stdenv.mkDerivation rec {
# $PATH, so it should also work on non-NixOS systems.
export NIX_CFLAGS_COMPILE="-DFUSERMOUNT_DIR=\"/run/wrappers/bin\""
sed -e 's@/bin/@${util-linux}/bin/@g' -i lib/mount_util.c
substituteInPlace lib/mount_util.c --replace "/bin/" "${util-linux}/bin/"
'' + (if isFuse3 then ''
# The configure phase will delete these files (temporary workaround for
# ./fuse3-install_man.patch)
install -D -m444 doc/fusermount3.1 $out/share/man/man1/fusermount3.1
install -D -m444 doc/mount.fuse3.8 $out/share/man/man8/mount.fuse3.8
'' else ''
substituteInPlace util/mount.fuse.c --replace '"su"' '"${shadow.su}/bin/su"'
sed -e 's@CONFIG_RPATH=/usr/share/gettext/config.rpath@CONFIG_RPATH=${gettext}/share/gettext/config.rpath@' -i makeconf.sh
./makeconf.sh
'');
@@ -36,10 +36,10 @@ rec {
else legacy_390;
beta = generic {
version = "460.27.04";
sha256_64bit = "plTqtc5QZQwM0f3MeMZV0N5XOiuSXCCDklL/qyy8HM8=";
settingsSha256 = "hU9J0VSrLXs7N14zq6U5LbBLZXEIyTfih/Bj6eFcMf0=";
persistencedSha256 = "PmqhoPskqhJe2FxMrQh9zX1BWQCR2kkfDwvA89+XALA=";
version = "465.27";
sha256_64bit = "fmn/qFve5qqqa26n4dsoOwGZ+ash5Bon3JBI8kncMXE=";
settingsSha256 = "3BFLCx0dcrQY4Mv1joMsiVPwTPyufgsNT5pFgp1Mk/A=";
persistencedSha256 = "HtoFGTiBnAeQyRTOMlve5poaQh63LHRD+DHJxZO+c90=";
};
# Vulkan developer beta driver