Unverified Commit 2a29529d authored by tomberek's avatar tomberek Committed by GitHub
Browse files

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

alsa-firmware: fix building with llvm
parents 75f32640 f22364d2
Loading
Loading
Loading
Loading
+15 −7
Original line number Diff line number Diff line
{ lib, buildPackages, stdenvNoCC, autoreconfHook, fetchurl, fetchpatch }:

stdenvNoCC.mkDerivation rec {
{
  lib,
  stdenv,
  buildPackages,
  autoreconfHook,
  fetchurl,
  fetchpatch,
}:

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;