Unverified Commit a96ca619 authored by github-actions[bot]'s avatar github-actions[bot] Committed by GitHub
Browse files

pkgsMusl.alsa-firmware: fix build (#203269)



(cherry picked from commit 7ae1e770bf6d27a72b734b8384ea3fdaa3db3ed4)

Co-authored-by: default avatarYureka <yuka@yuka.dev>
parent ce5fe99d
Loading
Loading
Loading
Loading
+9 −1
Original line number Diff line number Diff line
{ lib, buildPackages, stdenvNoCC, autoreconfHook, fetchurl }:
{ lib, buildPackages, stdenvNoCC, autoreconfHook, fetchurl, fetchpatch }:

stdenvNoCC.mkDerivation rec {
  pname = "alsa-firmware";
@@ -9,6 +9,14 @@ stdenvNoCC.mkDerivation rec {
    sha256 = "sha256-tnttfQi8/CR+9v8KuIqZwYgwWjz1euLf0LzZpbNs1bs=";
  };

  patches = [
    # fixes some includes / missing types on musl libc; should not make a difference for other platforms
    (fetchpatch {
      url = "https://raw.githubusercontent.com/void-linux/void-packages/ae690000017d5fd355ab397c49202426e3a01c11/srcpkgs/alsa-firmware/patches/musl.patch";
      sha256 = "sha256-4A+TBBvpz14NwMNewLc2LQL51hnz4EZlZ44rhnx5dnc=";
    })
  ];

  depsBuildBuild = [ buildPackages.stdenv.cc ];
  nativeBuildInputs = [ autoreconfHook ];