1{ lib, stdenv, fetchFromGitHub, autoreconfHook, pkg-config }:
2
3stdenv.mkDerivation rec {
4 pname = "musl-obstack";
5 version = "1.2.3";
6
7 src = fetchFromGitHub {
8 owner = "void-linux";
9 repo = "musl-obstack";
10 rev = "v${version}";
11 sha256 = "sha256-oydS7FubUniMHAUWfg84OH9+CZ0JCrTXy7jzwOyJzC8=";
12 };
13
14 nativeBuildInputs = [ autoreconfHook pkg-config ];
15
16 enableParallelBuilding = true;
17
18 meta = with lib; {
19 homepage = "https://github.com/void-linux/musl-obstack";
20 description =
21 "An extraction of the obstack functions and macros from GNU libiberty for use with musl-libc";
22 platforms = platforms.linux;
23 license = licenses.lgpl21Plus;
24 maintainers = [ maintainers.pjjw ];
25 };
26}