zsh-fzf-tab: Support darwin platform (#137514)
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
This commit is contained in:
parent
4a56ed7a78
commit
2b022a979a
11
pkgs/shells/zsh/zsh-fzf-tab/darwin.patch
Normal file
11
pkgs/shells/zsh/zsh-fzf-tab/darwin.patch
Normal file
|
@ -0,0 +1,11 @@
|
|||
diff --git a/modules/Src/aloxaf/fzftab.c b/modules/Src/aloxaf/fzftab.c
|
||||
index 60b6330..91975d8 100644
|
||||
--- a/modules/Src/aloxaf/fzftab.c
|
||||
+++ b/modules/Src/aloxaf/fzftab.c
|
||||
@@ -1,6 +1,5 @@
|
||||
#include "fzftab.mdh"
|
||||
#include "fzftab.pro"
|
||||
-#include <malloc.h>
|
||||
#include <stdarg.h>
|
||||
#include <stdlib.h>
|
||||
#include <sys/stat.h>
|
|
@ -15,6 +15,8 @@ in stdenv.mkDerivation rec {
|
|||
|
||||
buildInputs = [ ncurses ];
|
||||
|
||||
patches = lib.optionals stdenv.isDarwin [ ./darwin.patch ];
|
||||
|
||||
postConfigure = ''
|
||||
pushd modules
|
||||
./configure --disable-gdbm --without-tcsetpgrp
|
||||
|
@ -40,6 +42,6 @@ in stdenv.mkDerivation rec {
|
|||
description = "Replace zsh's default completion selection menu with fzf!";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ vonfry ];
|
||||
platforms = platforms.linux;
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue