libpipeline: fix build for osx (#15754)
This commit is contained in:
parent
9fff4b31fa
commit
84f31ded3f
@ -8,6 +8,8 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "1vmrs4nvdsmb550bk10cankrd42ffczlibpsnafxpak306rdfins";
|
||||
};
|
||||
|
||||
patches = stdenv.lib.optionals stdenv.isDarwin [ ./fix-on-osx.patch ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = "http://libpipeline.nongnu.org";
|
||||
description = "C library for manipulating pipelines of subprocesses in a flexible and convenient way";
|
||||
|
13
pkgs/development/libraries/libpipeline/fix-on-osx.patch
Normal file
13
pkgs/development/libraries/libpipeline/fix-on-osx.patch
Normal file
@ -0,0 +1,13 @@
|
||||
diff --git a/lib/pipeline.c b/lib/pipeline.c
|
||||
index 26478f9..1612307 100644
|
||||
--- a/lib/pipeline.c
|
||||
+++ b/lib/pipeline.c
|
||||
@@ -75,6 +75,8 @@
|
||||
# endif
|
||||
#endif
|
||||
|
||||
+const char* program_name = "libpipeline";
|
||||
+
|
||||
#if defined(HAVE_SETENV) && !defined(HAVE_CLEARENV)
|
||||
int clearenv (void)
|
||||
{
|
Loading…
Reference in New Issue
Block a user