nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5 autoreconfHook,
6 pkg-config,
7}:
8
9stdenv.mkDerivation rec {
10 pname = "musl-obstack";
11 version = "1.2.3";
12
13 src = fetchFromGitHub {
14 owner = "void-linux";
15 repo = "musl-obstack";
16 rev = "v${version}";
17 sha256 = "sha256-oydS7FubUniMHAUWfg84OH9+CZ0JCrTXy7jzwOyJzC8=";
18 };
19
20 patches = lib.optionals stdenv.hostPlatform.isDarwin [
21 ./0001-ignore-obstack_free-alias-on-darwin.patch
22 ];
23
24 nativeBuildInputs = [
25 autoreconfHook
26 pkg-config
27 ];
28
29 enableParallelBuilding = true;
30
31 meta = with lib; {
32 homepage = "https://github.com/void-linux/musl-obstack";
33 description = "Extraction of the obstack functions and macros from GNU libiberty for use with musl-libc";
34 platforms = platforms.unix;
35 license = licenses.lgpl21Plus;
36 maintainers = [ maintainers.pjjw ];
37 };
38}