diff options
author | Zhong Jianxin <azuwis@users.noreply.github.com> | 2021-09-12 21:58:48 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-12 15:58:48 +0200 |
commit | 2b022a979ab40832bf35442fe5a5e5466e97619e (patch) | |
tree | 980e36d28a8ff9d4bbb1bbb4eab62eabe440c79a /pkgs/shells | |
parent | 4a56ed7a78f7332756d82c47fe4d06652b8a0436 (diff) | |
download | nixpkgs-2b022a979ab40832bf35442fe5a5e5466e97619e.tar nixpkgs-2b022a979ab40832bf35442fe5a5e5466e97619e.tar.gz nixpkgs-2b022a979ab40832bf35442fe5a5e5466e97619e.tar.bz2 nixpkgs-2b022a979ab40832bf35442fe5a5e5466e97619e.tar.lz nixpkgs-2b022a979ab40832bf35442fe5a5e5466e97619e.tar.xz nixpkgs-2b022a979ab40832bf35442fe5a5e5466e97619e.tar.zst nixpkgs-2b022a979ab40832bf35442fe5a5e5466e97619e.zip |
zsh-fzf-tab: Support darwin platform (#137514)
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
Diffstat (limited to 'pkgs/shells')
-rw-r--r-- | pkgs/shells/zsh/zsh-fzf-tab/darwin.patch | 11 | ||||
-rw-r--r-- | pkgs/shells/zsh/zsh-fzf-tab/default.nix | 4 |
2 files changed, 14 insertions, 1 deletions
diff --git a/pkgs/shells/zsh/zsh-fzf-tab/darwin.patch b/pkgs/shells/zsh/zsh-fzf-tab/darwin.patch new file mode 100644 index 00000000000..54b6ce26138 --- /dev/null +++ b/pkgs/shells/zsh/zsh-fzf-tab/darwin.patch @@ -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> diff --git a/pkgs/shells/zsh/zsh-fzf-tab/default.nix b/pkgs/shells/zsh/zsh-fzf-tab/default.nix index ccf60e6d76a..ad1b7d3d740 100644 --- a/pkgs/shells/zsh/zsh-fzf-tab/default.nix +++ b/pkgs/shells/zsh/zsh-fzf-tab/default.nix @@ -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; }; } |