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

This commit is contained in:
Yureka 2022-11-27 15:25:28 +01:00 committed by GitHub
parent 3c813c4919
commit 3d96fdeca4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,4 +1,4 @@
{ 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 ];