summary refs log tree commit diff
path: root/pkgs/os-specific/linux/musl-obstack
diff options
context:
space:
mode:
authorPeter Woodman <peter@shortbus.org>2021-01-21 16:10:03 -0500
committerPeter Woodman <peter@shortbus.org>2021-01-31 19:39:57 -0500
commitd96a69c9639b2af5e0bd36ac02f57309fbe16b5b (patch)
tree2d3176c32806dd23b94c5a930bdf7b24f8aa84db /pkgs/os-specific/linux/musl-obstack
parentbcff2ac7eb8c5b198f9e4bf1827dad6f44a0a2b9 (diff)
downloadnixpkgs-d96a69c9639b2af5e0bd36ac02f57309fbe16b5b.tar
nixpkgs-d96a69c9639b2af5e0bd36ac02f57309fbe16b5b.tar.gz
nixpkgs-d96a69c9639b2af5e0bd36ac02f57309fbe16b5b.tar.bz2
nixpkgs-d96a69c9639b2af5e0bd36ac02f57309fbe16b5b.tar.lz
nixpkgs-d96a69c9639b2af5e0bd36ac02f57309fbe16b5b.tar.xz
nixpkgs-d96a69c9639b2af5e0bd36ac02f57309fbe16b5b.tar.zst
nixpkgs-d96a69c9639b2af5e0bd36ac02f57309fbe16b5b.zip
musl-obstack: init at 1.2.2
in service of getting elfutils building against musl-libc, this library
is an extraction of the obstack functions from glibc/libiberty. this is
the approach taken by void and alpine linux.
Diffstat (limited to 'pkgs/os-specific/linux/musl-obstack')
-rw-r--r--pkgs/os-specific/linux/musl-obstack/default.nix26
1 files changed, 26 insertions, 0 deletions
diff --git a/pkgs/os-specific/linux/musl-obstack/default.nix b/pkgs/os-specific/linux/musl-obstack/default.nix
new file mode 100644
index 00000000000..f7682d37efd
--- /dev/null
+++ b/pkgs/os-specific/linux/musl-obstack/default.nix
@@ -0,0 +1,26 @@
+{ lib, stdenv, fetchFromGitHub, autoreconfHook, pkg-config }:
+
+stdenv.mkDerivation rec {
+  pname = "musl-obstack";
+  version = "1.2.2";
+
+  src = fetchFromGitHub {
+    owner = "void-linux";
+    repo = "musl-obstack";
+    rev = "v${version}";
+    sha256 = "v0RTnrqAmJfOeGsJFc04lqFR8QZhYiLyvy8oRYiuC80=";
+  };
+
+  nativeBuildInputs = [ autoreconfHook pkg-config ];
+
+  enableParallelBuilding = true;
+
+  meta = with lib; {
+    homepage = "https://github.com/void-linux/musl-obstack";
+    description =
+      "An extraction of the obstack functions and macros from GNU libiberty for use with musl-libc";
+    platforms = platforms.linux;
+    license = licenses.lgpl21Plus;
+    maintainers = [ maintainers.pjjw ];
+  };
+}