Merge pull request #332147 from ExpidusOS/fix/pkgsllvm/alsa-firmware

alsa-firmware: fix building with llvm
This commit is contained in:
tomberek 2024-08-04 01:02:01 -04:00 committed by GitHub
commit 2a29529d92
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,6 +1,13 @@
{ lib, buildPackages, stdenvNoCC, autoreconfHook, fetchurl, fetchpatch }:
{
lib,
stdenv,
buildPackages,
autoreconfHook,
fetchurl,
fetchpatch,
}:
stdenvNoCC.mkDerivation rec {
stdenv.mkDerivation rec {
pname = "alsa-firmware";
version = "1.2.4";
@ -17,12 +24,13 @@ stdenvNoCC.mkDerivation rec {
})
];
depsBuildBuild = [ buildPackages.stdenv.cc ];
nativeBuildInputs = [ autoreconfHook ];
configureFlags = [
"--with-hotplug-dir=$(out)/lib/firmware"
];
configureFlags = [ "--with-hotplug-dir=$(out)/lib/firmware" ];
depsBuildBuild = lib.optional (
stdenv.buildPlatform != stdenv.hostPlatform || stdenv.hostPlatform.isAarch64
) buildPackages.stdenv.cc;
dontStrip = true;