zsh-fzf-tab: Support darwin platform (#137514)

Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
mullvad-ns
Zhong Jianxin 3 years ago committed by GitHub
parent 4a56ed7a78
commit 2b022a979a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 11
      pkgs/shells/zsh/zsh-fzf-tab/darwin.patch
  2. 4
      pkgs/shells/zsh/zsh-fzf-tab/default.nix

@ -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…
Cancel
Save