diff --git a/pkgs/development/libraries/libpipeline/default.nix b/pkgs/development/libraries/libpipeline/default.nix index 3f91540dc80b..038556261a4c 100644 --- a/pkgs/development/libraries/libpipeline/default.nix +++ b/pkgs/development/libraries/libpipeline/default.nix @@ -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"; diff --git a/pkgs/development/libraries/libpipeline/fix-on-osx.patch b/pkgs/development/libraries/libpipeline/fix-on-osx.patch new file mode 100644 index 000000000000..c539e2dde970 --- /dev/null +++ b/pkgs/development/libraries/libpipeline/fix-on-osx.patch @@ -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) + {